Skip to content

Commit

Permalink
🤡 (BufferedSerial): Reset sigio on enable_input
Browse files Browse the repository at this point in the history
Is current behavior on robot
  • Loading branch information
YannLocatelli committed Jul 10, 2024
1 parent f8bd18c commit 6ea7c2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/stubs/stubs/mbed/source/BufferedSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ void BufferedSerial::tx_irq(void) {}
int BufferedSerial::enable_input(bool enabled)
{
spy_BufferedSerial_enable_input = enabled;
if (not(enabled)) {
leka::spy_BufferedSerial_sigio_callback = [] {}; // ? Current behavior on robot
}

return 0;
}
Expand Down

0 comments on commit 6ea7c2d

Please sign in to comment.