Initial Commit
This commit is contained in:
@@ -70,13 +70,13 @@ int cmd_mst(const uint8_t *data, uint8_t data_len)
|
||||
|
||||
if ((ret != 0) || (t_cdeg == INT16_MIN))
|
||||
{
|
||||
cmd_send_response_u16("rso:", 0xFFFF);
|
||||
cmd_send_response_u16("rst:", 0xFFFF);
|
||||
DBG_PRINTF("[CMD] mst: imu temp read fail ret=%d\r\n", ret);
|
||||
return 1;
|
||||
}
|
||||
|
||||
// 음수 온도도 2's complement로 그대로 전송 (앱이 int16로 해석)
|
||||
cmd_send_response_u16("rso:", (uint16_t)t_cdeg);
|
||||
cmd_send_response_u16("rst:", (uint16_t)t_cdeg);
|
||||
DBG_PRINTF("[CMD] mst -> %d.%02d C\r\n", t_cdeg / 100, (t_cdeg < 0 ? -t_cdeg : t_cdeg) % 100);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user