修复 reportBattInfo 拼写错误导致数据为空的问题
This commit is contained in:
parent
8801a784c6
commit
da13b82b66
@ -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 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 len = time2Byte(battInfo + 8); //添加时间戳
|
||||||
uint8_t blen = getBattRAWInfo(binfo + 8 + len);
|
uint8_t blen = getBattRAWInfo(battInfo + 8 + len);
|
||||||
len += blen;
|
len += blen;
|
||||||
|
|
||||||
battInfo[7] = len; //update len of raw data
|
battInfo[7] = len; //update len of raw data
|
||||||
|
Loading…
Reference in New Issue
Block a user