Skip to content

Commit

Permalink
Fix overflow on serial, print txDebug
Browse files Browse the repository at this point in the history
  • Loading branch information
chopsuey5000 committed Jul 16, 2015
1 parent ab307f7 commit e1d321f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sck_beta_v0_9/SCKAmbient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ void SCKAmbient::txDebug() {
else dec = 1;
Serial.print(SENSOR[i]);
if (dec>1) Serial.print((float)(value[i]/dec));
else Serial.print((int)(value[i]/dec));
else Serial.print((unsigned int)(value[i]/dec));
Serial.println(UNITS[i]);
}
Serial.print(SENSOR[9]);
Expand Down

0 comments on commit e1d321f

Please sign in to comment.