summaryrefslogtreecommitdiff
path: root/common/temp_sensor.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/temp_sensor.c')
-rw-r--r--common/temp_sensor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c
index d4285653ed..9a0abbdcbc 100644
--- a/common/temp_sensor.c
+++ b/common/temp_sensor.c
@@ -169,7 +169,7 @@ static int command_temps(int argc, char **argv)
for (i = 0; i < TEMP_SENSOR_COUNT; ++i) {
uart_printf(" Temp from %s: ", temp_sensors[i].name);
- t = temp_sensor_read(temp_sensors[i].id);
+ t = temp_sensor_read(i);
if (t < 0) {
uart_printf("Error.\n\n");
rv = -1;
@@ -185,7 +185,7 @@ static int command_temps(int argc, char **argv)
}
DECLARE_CONSOLE_COMMAND(temps, command_temps);
-static int command_sensor_info(int argc, char ** argv)
+static int command_sensor_info(int argc, char **argv)
{
int i;
int rv;