Compare commits

...

1 Commits

Author SHA1 Message Date
361428d764 Formatting change. 2025-01-30 06:19:18 -08:00

2
icx3.c
View File

@ -93,7 +93,7 @@ void print_icx3_temps(char *i2c_dev_path)
cur_data = (short)(temp_sensors->data[2*i+1] << 8) | (short)(temp_sensors->data[2*i]); cur_data = (short)(temp_sensors->data[2*i+1] << 8) | (short)(temp_sensors->data[2*i]);
/* temp is reported in tenths of deg C */ /* temp is reported in tenths of deg C */
cur_temp = (float)cur_data/10; cur_temp = (float)cur_data/10;
printf("%s: %.1f C\n", printf("%s: %+.1f°C\n",
icx3_temp_sensor_names[i], icx3_temp_sensor_names[i],
cur_temp); cur_temp);
} }