![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Digital Test Code
Diff: main.cpp
- Revision:
- 1:105aefb63c7e
- Parent:
- 0:600cb14e8a31
--- 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;