/* Temp sensor */
ret = tmp101_sensor_config(&tmp101_sensor);
if (ret != 0) {
- uprintf(uart_num, "Temp config error\n");
+ uprintf(uart_num, "Temp config error: %d\n", ret);
}
}
msleep(250); /* Wait for the end of the conversion : 40ms */
len = tmp101_sensor_read(&tmp101_sensor, &raw, &deci_degrees);
if (len != 0) {
- uprintf(uart_num, "Temp read error\n");
+ uprintf(uart_num, "Temp read error: %d\n", ret);
} else {
uprintf(uart_num, "Temp read: %d,%d - raw: 0x%04x.\n",
(deci_degrees/10), (deci_degrees%10), raw);