serial fixes

This commit is contained in:
Devaev Maxim
2020-12-03 06:13:13 +03:00
parent 748900e649
commit a694cbd240
3 changed files with 13 additions and 5 deletions

View File

@@ -255,7 +255,7 @@ static void _sendResponse(uint8_t code) {
}
uint8_t response[8] = {0};
response[0] = PROTO::MAGIC;
response[0] = PROTO::MAGIC_RESP;
if (code & PROTO::PONG::OK) {
response[1] = PROTO::PONG::OK;
# ifdef HID_DYNAMIC

View File

@@ -25,6 +25,7 @@
namespace PROTO {
const uint8_t MAGIC = 0x33;
const uint8_t MAGIC_RESP = 0x34;
namespace RESP { // Plain responses
// const uint8_t OK = 0x20; // Legacy