energy changed

This commit is contained in:
sun
2019-07-16 02:26:56 +08:00
parent 1a096979f7
commit 02ea0c5c7b
7 changed files with 30 additions and 23 deletions

View File

@@ -44,11 +44,11 @@ void uartReceive(Serial *pSerial) {
}
}
if (cnt == 0 && byte == '\n') {
LOGM("%d", cnt);
// LOGM("%d", cnt);
}
if (cnt == sizeof(mcuData)) {
memcpy(&mcuData, buffer, sizeof(mcuData));
LOGM("Get, state:%c, mark:%d!", mcuData.state, (int) mcuData.mark);
// LOGM("Get, state:%c, mark:%d!", mcuData.state, (int) mcuData.mark);
}
cnt = 0;
}