Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed lib_workshop_2019
Diff: src/console_output.cpp
- Revision:
- 4:bf5caf4c0c88
- Parent:
- 3:a0e37b8918ac
--- a/src/console_output.cpp Wed Oct 23 14:01:59 2019 +0000
+++ b/src/console_output.cpp Wed Oct 23 19:25:12 2019 +0000
@@ -19,7 +19,16 @@
return user_choice;
}
+int ft_get_user_int(Serial &pc)
+{
+ int user_int = (e_test) (pc.getc() -'0');
+ if (user_int > 9 || user_int < 0)
+ return -1;
+ else
+ return user_int;
+}
+
void ft_print_to_be_imp(Serial &pc)
{
- printf("\n\rTo be implemented\n");
+ printf("\rTo be implemented");
}
\ No newline at end of file