修复 reportBattInfo 拼写错误导致数据为空的问题

This commit is contained in:
CSSC-WORK\murmur 2023-09-10 09:39:21 +08:00
parent 8801a784c6
commit da13b82b66

View File

@ -744,9 +744,8 @@ void reportBattInfo(void)
{
uint8_t battInfo[200] = { 0x5A, 0xA5, ADDR_ANJI, ADDR_TT, _INFO_BATT >> 8, _INFO_BATT & 0xFF, 0, 0 };
uint8_t binfo[63];
uint8_t len = time2Byte(battInfo + 8); //添加时间戳
uint8_t blen = getBattRAWInfo(binfo + 8 + len);
uint8_t blen = getBattRAWInfo(battInfo + 8 + len);
len += blen;
battInfo[7] = len; //update len of raw data