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.
Revision 10:538b825e8ffc, committed 2017-06-03
- Comitter:
- dedounet
- Date:
- Sat Jun 03 15:23:32 2017 +0000
- Parent:
- 9:5a790f59217e
- Commit message:
- Final_r?vis?
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Jun 03 15:19:14 2017 +0000
+++ b/main.cpp Sat Jun 03 15:23:32 2017 +0000
@@ -20,7 +20,7 @@
CANMessage MessageBuzzer;
-bool send_Buzz=false; // Envoyer tramme au buzzer
+bool send_Buzz=false; // Envoyer trame au buzzer
bool result = false;
unsigned int Id;
@@ -75,7 +75,7 @@
result= rechercheID(ID);
send_Buzz=true;
- //si buzz ok, on trait Buzz par un signal
+ //si buzz ok, on traite Buzz par un signal
}
}
@@ -107,19 +107,15 @@
MessageBuzzer.len=1;
MessageBuzzer.id=Id;
- if( send_Buzz==true)
- {
- if (result) MessageBuzzer.data[0] = 0x01;
- else MessageBuzzer.data[0] = 0x00;
-
- CanPort.write(MessageBuzzer);
- send_Buzz=false;
- }
-
-
- /*if (Id < 0x3FF) Id++;
- else Id = 0x000;*/
-
+ if( send_Buzz==true)
+ {
+ if (result) MessageBuzzer.data[0] = 0x01;
+ else MessageBuzzer.data[0] = 0x00;
+
+ CanPort.write(MessageBuzzer);
+ send_Buzz=false;
+ }
+
}
}