Skip to content

Commit

Permalink
fixing linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteSchm committed Mar 26, 2023
1 parent 06d5da5 commit 07ea03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Huawei_can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void HuaweiCanClass::onReceive(uint8_t* frame, uint8_t len)
return;
}

uint32_t value = __bswap32(*(uint32_t*)&frame[4]);
uint32_t value = __bswap32(* reinterpret_cast<uint32_t*> (frame + 4));

switch (frame[1]) {
case R48xx_DATA_INPUT_POWER:
Expand Down

0 comments on commit 07ea03d

Please sign in to comment.