![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Digital Test Code
Revision 1:105aefb63c7e, committed 2020-04-20
- Comitter:
- EricGlunn
- Date:
- Mon Apr 20 20:41:38 2020 +0000
- Parent:
- 0:600cb14e8a31
- Commit message:
- Digital
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Apr 15 20:12:10 2020 +0000 +++ b/main.cpp Mon Apr 20 20:41:38 2020 +0000 @@ -32,7 +32,7 @@ Serial PC(USBTX,USBRX); Ticker tickerboi; //Initialize the ticker for Sampling -volatile unsigned char DigitalSample; +volatile uint8_t DigitalSample; volatile unsigned char command; volatile unsigned char pins; volatile bool DigitalRunning; @@ -46,7 +46,7 @@ DigitalSample = digital; if( (command & pin1) == pin1){ - DigitalSample=DigitalSample + d1*pin1; + DigitalSample=DigitalSample + d1*pin1; } if( (command & pin2) == pin2){ DigitalSample=DigitalSample + d2*pin2;