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.
Dependents: LEX_Threaded_Programming MEMSPCR_Control_Program_AD_Logging_Demo_PCB MEMSPCR_Control_Program_AD_Logging_Sync MEMSPCR_Control_Program_AD_Logging_PWM ... more
Revision 2:52a40eb59b06, committed 2019-07-24
- Comitter:
- omatthews
- Date:
- Wed Jul 24 14:29:54 2019 +0000
- Parent:
- 0:d59f808e1719
- Child:
- 3:7c4fd26c696e
- Commit message:
- Works quite well - needed to pass by pointer to change duty cycle!
Changed in this revision
| ADS8568_ADC.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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];
}