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.
Fork of GA-Berkay_Alex by
Diff: main_minimal.cpp
- Revision:
- 2:5adf0b785944
- Parent:
- 1:346279def7ac
- Child:
- 3:8bee1711d186
--- a/main_minimal.cpp Sat Dec 09 16:02:58 2017 +0000
+++ b/main_minimal.cpp Wed Jan 10 16:14:49 2018 +0000
@@ -128,7 +128,7 @@
// EXECUTE THIS IF A BASE STATION
pc.readcommand(executeOrder);
- wait_ms(80);
+ wait_ms(10);
wdt.kick();
}
@@ -145,6 +145,7 @@
void executeOrder(char* command){
+
int repetitions = command[3]*100 + command[4]*10 + command[5] - 5328;
//uint8_t dest1 = command[7] - 48;
uint8_t dest2 = command[8] - 48;
@@ -168,7 +169,7 @@
}
if (strncmp(command, "reset", 5) == 0){ // This command is implemented in order to be able to reset BaseStation from Matlab.
- wdt.kick(2); // Set up WatchDog
+ wdt.kick(); // Set up WatchDog
pc.printf("Base Station is RESETTED \r\n\r\n");
}
