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.
Diff: SerialCtrl.h
- Revision:
- 4:32f7deade942
- Parent:
- 1:0184f38e2e83
- Child:
- 5:731e4a7f5947
--- a/SerialCtrl.h Mon Sep 02 02:29:22 2019 +0000
+++ b/SerialCtrl.h Tue Feb 18 08:47:32 2020 +0000
@@ -29,16 +29,21 @@
void param(unsigned char header, unsigned char footer);
bool get();
+ void setFailMax(int n);
+ void setFailMax();
private:
unsigned char input();
Serial *_Serial;
Timer *_Timer;
- unsigned char STX; //header data code
- unsigned char ETX; //footer data code
- int TIMEOUT_MS; //timeout limit
- #define NUL 0 //dummy data
- #define FAIL_MAX 15 //fail count
+
+ unsigned char STX; //header data code
+ unsigned char ETX; //footer data code
+ int TIMEOUT_MS; //timeout limit time
+ int RETRY_MAX; //retry limit
+
+ #define NUL 0 //dummy data
+ #define RETRY_DEF 15 //fail max default
};