Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wsowa committed Apr 8, 2016
1 parent f65f9dc commit d68778b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions temp.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ void temp_sensor_tick() {
#ifdef TEMP_THERMISTOR
case TT_THERMISTOR:
//Read current temperature
temp = calculate_temp_from_lookup_table(analog_read(temp_sensors[i].temp_pin), i);
temp = calculate_temp_from_lookup_table(analog_read(i), i);

temp_sensors_runtime[i].next_read_time = 0;
break;
Expand All @@ -271,7 +271,7 @@ void temp_sensor_tick() {
//Read current temperature
temp = calculate_temp_from_lookup_table(mcp3008_read(temp_sensors[i].temp_pin), i);

// This is a SPI read so it is not as fast as on-chip ADC. A ready every 100ms should be sufficient.
// This is an SPI read so it is not as fast as on-chip ADC. A read every 100ms should be sufficient.
temp_sensors_runtime[i].next_read_time = 10;
break;
#endif /* TEMP_MCP3008 */
Expand Down

0 comments on commit d68778b

Please sign in to comment.