Skip to content

Commit ff85fa8

Browse files
committed
Disable STDIN input to allow deepsleep
1 parent 1e82ca9 commit ff85fa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/arduino/main.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ void setupUSB() { }
3333

3434
int main(void)
3535
{
36+
// we are never going to use getchar/scanf directly
37+
mbed::mbed_file_handle(STDIN_FILENO)->enable_input(false);
3638
init();
3739
initVariant();
3840

0 commit comments

Comments
 (0)