Skip to content

Commit

Permalink
Update packet_processor.cpp
Browse files Browse the repository at this point in the history
Fix issue #87
  • Loading branch information
stuartpittaway authored Jan 21, 2021
1 parent 7674057 commit db39561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ATTINYCellModule/src/packet_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,13 @@ bool PacketProcessor::processPacket(PacketStruct *buffer)

case COMMAND::ReadBalanceCurrentCounter:
{
buffer->moduledata[mymoduleaddress] = (uint16_t)MilliAmpHourBalanceCounter;
buffer->moduledata[moduledata_index] = (uint16_t)MilliAmpHourBalanceCounter;
return true;
}

case COMMAND::ReadPacketReceivedCounter:
{
buffer->moduledata[mymoduleaddress] = PacketReceivedCounter;
buffer->moduledata[moduledata_index] = PacketReceivedCounter;
return true;
}

Expand Down

0 comments on commit db39561

Please sign in to comment.