From 4e5e9467b010c28d154ffc2f4852f483275ae6e0 Mon Sep 17 00:00:00 2001 From: Patrick Grawehr Date: Sun, 15 Sep 2024 21:12:10 +0200 Subject: [PATCH] Fix a deprecation warning --- src/ConfigurableFirmata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ConfigurableFirmata.cpp b/src/ConfigurableFirmata.cpp index 6f46656..a7b2e6d 100644 --- a/src/ConfigurableFirmata.cpp +++ b/src/ConfigurableFirmata.cpp @@ -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 } /**