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 BLE_API X_NUCLEO_IDB0XA1 MODSERIAL
Diff: COM/LOGGER.h
- Revision:
- 3:13bd725bd47b
- Parent:
- 2:ca6d8d1f77d4
diff -r ca6d8d1f77d4 -r 13bd725bd47b COM/LOGGER.h --- a/COM/LOGGER.h Thu Aug 18 14:29:47 2016 +0000 +++ b/COM/LOGGER.h Sat Aug 20 18:24:21 2016 +0000 @@ -4,12 +4,9 @@ #include "mbed.h" #include <string> #define <queue> -#define UP 8 -#define RIGHT 6 -#define LEFT 4 -#define DOWN 2 -#define STOP 7 -#define PLAY 9 +#define DEBUT_TRAME '!' +#define FIN_TRAME '#' +#define MAX_SIZE_BUFFER 6 class Logger { public : @@ -24,6 +21,7 @@ void log(long l); void logn(long l); string log_itos(int i); + //buffer int get_buffer_index(); void flush_buffer(); protected : @@ -33,6 +31,7 @@ Logger(); MODSERIAL * serial; int buffer_index; + bool new_event, event_detected; std::queue<char> *buffer; };