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: mbed
Diff: src/main.cpp
- Revision:
- 26:55e8e1a9cc84
- Parent:
- 25:8bcc8bea0e31
--- a/src/main.cpp Sun Jan 20 16:56:52 2019 +0000 +++ b/src/main.cpp Tue Jan 22 19:56:22 2019 +0000 @@ -137,7 +137,17 @@ //} //count++; }else if(!testing){ - //updateControls(my12); + row_test = abs((int)(my12-old_row)); + if(row_test>ROW_HYSTERESIS){ + old_row = my12; + //updateControls(CURRENT_12_OFFSET-adcVals.i12); + if(row<=1023){ + //updateControls(row); + updateControls(my12); + } + row_print = my12; + myled = !myled; + } } if(updateReady){