This is a Driver for the Analog Devices AD7989 18 Bit ADC.
Diff: AD7989.cpp
- Revision:
- 8:b143706d6c43
- Parent:
- 0:64eaedfa13a2
--- a/AD7989.cpp Mon Jan 21 19:11:45 2019 +0000 +++ b/AD7989.cpp Mon Feb 04 11:09:56 2019 -0600 @@ -43,9 +43,9 @@ double AD7989_Driver::sample_avg(int num_avgs) { double temp = 0.0; - for(int = 0; i < num_avgs; i++) + for(int i = 0; i < num_avgs; i++) { temp = temp + sample(); } temp = temp/num_avgs; -} \ No newline at end of file +}