Initial Commit

This commit is contained in:
2026-07-06 12:06:24 +09:00
parent e55b283b39
commit 38ec75ad78
4 changed files with 68 additions and 184 deletions
+2 -2
View File
@@ -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;
}