Skip to content

Commit 3760db2

Browse files
committed
Disable STDIN input to allow deepsleep
1 parent 19bb753 commit 3760db2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/arduino/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ int main(void)
3636
init();
3737
initVariant();
3838

39+
// we are never going to use getchar/scanf directly
40+
mbed::mbed_file_handle(STDIN_FILENO)->enable_input(false);
41+
3942
#if defined(SERIAL_CDC)
4043
PluggableUSBD().begin();
4144
SerialUSB.begin(115200);

0 commit comments

Comments
 (0)