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: XBeeLib mbed mbed-rtos EthernetInterface
Diff: main.cpp
- Revision:
- 14:53c7ea9124ee
- Parent:
- 13:af1b80df064c
- Child:
- 15:e263f8c52b9f
diff -r af1b80df064c -r 53c7ea9124ee main.cpp
--- a/main.cpp Wed Oct 31 18:15:24 2018 +0000
+++ b/main.cpp Wed Oct 31 18:40:47 2018 +0000
@@ -116,14 +116,15 @@
}
void gestion() {
- while(1) {
- if(((nombreDeVoitureNS>=7) && nombreDeVoitureNS>(nombreDeVoitureEO+10))
- || (nombreDeVoitureEO ==0)
- ){
+ int max, min;
+ while(1) {
+ if((nombreDeVoitureNS>(nombreDeVoitureEO+10))
+ || (nombreDeVoitureEO ==0)){
bns=1;
beo=0;
}
- else if(nombreDeVoitureEO>(nombreDeVoitureNS+10)) {
+ else if(nombreDeVoitureEO>(nombreDeVoitureNS+10)
+ || (nombreDeVoitureEO ==0)){
bns=0;
beo=1;
}
