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: HIDScope MODSERIAL QEI TextLCD mbed
Fork of TotalControlEmg2 by
Diff: Mode.cpp
- Revision:
- 19:6c0245063b96
- Parent:
- 18:eec0880fcded
- Child:
- 27:f62e450bb411
diff -r eec0880fcded -r 6c0245063b96 Mode.cpp
--- a/Mode.cpp Mon Oct 12 10:14:18 2015 +0000
+++ b/Mode.cpp Tue Oct 13 12:28:32 2015 +0000
@@ -8,12 +8,12 @@
if ( y <= thresholdlow){
mode = 1;
}
+ if (y > thresholdhigh){
+ mode = 3;
+ }
if (y > thresholdmid && mode == 1){
mode = 2;
}
- if (y > thresholdhigh && mode == 1){
- mode = 3;
- }
return mode;
}
