Skip to content

Commit

Permalink
fix encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam authored and andreagilardoni committed Apr 22, 2024
1 parent 96f0346 commit 008280e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cbor/MessageEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ CBORMessageEncoder::EncoderState CBORMessageEncoder::handle_EncodeArray(CborEnco
case CommandId::DeviceBeginCmdId:
array_size = 1;
break;
case CommandId::LastValuesUpdateCmdId:
case CommandId::LastValuesBeginCmdId:
break;
case CommandId::OtaProgressCmdUpId:
array_size = 4;
Expand Down Expand Up @@ -128,7 +128,7 @@ CBORMessageEncoder::EncoderState CBORMessageEncoder::handle_EncodeParam(CborEnco
case CommandId::DeviceBeginCmdId:
error = CBORMessageEncoder::encodeDeviceBeginCmd(array_encoder, message);
break;
case CommandId::LastValuesUpdateCmdId:
case CommandId::LastValuesBeginCmdId:
break;
case CommandId::OtaProgressCmdUpId:
error = CBORMessageEncoder::encodeOtaProgressCmdUp(array_encoder, message);
Expand Down

0 comments on commit 008280e

Please sign in to comment.