ADC for threaded program
Dependents: LEX_Threaded_Programming MEMSPCR_Control_Program_AD_Logging_Demo_PCB MEMSPCR_Control_Program_AD_Logging_Sync MEMSPCR_Control_Program_AD_Logging_PWM ... more
Diff: ADS8568_ADC.cpp
- Revision:
- 2:52a40eb59b06
- Parent:
- 0:d59f808e1719
- Child:
- 3:7c4fd26c696e
diff -r d59f808e1719 -r 52a40eb59b06 ADS8568_ADC.cpp --- a/ADS8568_ADC.cpp Tue Jul 16 14:22:31 2019 +0000 +++ b/ADS8568_ADC.cpp Wed Jul 24 14:29:54 2019 +0000 @@ -64,7 +64,7 @@ //loop over bytes to add channel voltage values for (int x=0; x<8; x++){ val_array[x] = buffer[2*x]<<8 | buffer[(2*x) + 1]; - values [x] = values[x] + val_array[x]; + values [x] = val_array[x]; }