From 6ea7c2dbf86b1bffed68dff4e191ad3eda7091c8 Mon Sep 17 00:00:00 2001 From: Yann Locatelli Date: Fri, 2 Feb 2024 18:17:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=A1=20(BufferedSerial):=20Reset=20sigi?= =?UTF-8?q?o=20on=20enable=5Finput?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Is current behavior on robot --- tests/unit/stubs/stubs/mbed/source/BufferedSerial.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/stubs/stubs/mbed/source/BufferedSerial.cpp b/tests/unit/stubs/stubs/mbed/source/BufferedSerial.cpp index 5ff4178a30..556a653df7 100644 --- a/tests/unit/stubs/stubs/mbed/source/BufferedSerial.cpp +++ b/tests/unit/stubs/stubs/mbed/source/BufferedSerial.cpp @@ -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; }