Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
refs #17 Initial ADC reads.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoos committed Feb 10, 2015
1 parent 6fab407 commit 1841a39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/drivers/vishaytherm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ void VishayTherm::init() {
}

ThermistorReading VishayTherm::readTherm() {
update(); // Update ADC measurements. TODO(yoos): "update" is probably the wrong term to be using.

ThermistorReading reading;

reading.celsius = 2.345f;
//reading.celsius = (*avg_ch)[0] / 1024.0f;

chprintf((BaseSequentialStream*)&SD4, "%f\r\n", reading.celsius);
//chprintf((BaseSequentialStream*)&SD4, "%f\r\n", reading.celsius);

return reading;
}

0 comments on commit 1841a39

Please sign in to comment.