Skip to content

Commit

Permalink
Fix formula comment
Browse files Browse the repository at this point in the history
  • Loading branch information
maniacbug committed Mar 27, 2012
1 parent 7c76f97 commit 9a06b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/sensornet/sensornet.pde
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void loop(void)

// Convert the voltage reading to celcius*256
// This is the formula for MCP9700.
// C = ( V - 1/2 ) / 100
// C = ( V - 1/2 ) * 100
message.temp_reading = ( reading - 0x8000 ) * 0x100 / ( 0x10000 / 100 );

// Take the voltage reading
Expand Down

0 comments on commit 9a06b03

Please sign in to comment.