Skip to content

Commit

Permalink
Fix a deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrawehr committed Sep 15, 2024
1 parent b858ba5 commit 4e5e946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ConfigurableFirmata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ extern "C" {
*/
void FirmataClass::sendValueAsTwo7bitBytes(int value)
{
FirmataStream->write(value & B01111111); // LSB
FirmataStream->write(value >> 7 & B01111111); // MSB
FirmataStream->write(value & 0B01111111); // LSB
FirmataStream->write(value >> 7 & 0B01111111); // MSB
}

/**
Expand Down

0 comments on commit 4e5e946

Please sign in to comment.