From 53ee73f5f7848103cc163c7d43c11bea85c476b7 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Wed, 20 Aug 2025 12:38:07 -0500 Subject: [PATCH] Trunk again --- src/platform/portduino/PortduinoGlue.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/platform/portduino/PortduinoGlue.cpp b/src/platform/portduino/PortduinoGlue.cpp index 9270d7297..929a45d09 100644 --- a/src/platform/portduino/PortduinoGlue.cpp +++ b/src/platform/portduino/PortduinoGlue.cpp @@ -10,6 +10,7 @@ #include "linux/gpio/LinuxGPIOPin.h" #include "meshUtils.h" #include "yaml-cpp/yaml.h" +#include #include #include #include @@ -20,8 +21,6 @@ #include #include #include -#include - #ifdef PORTDUINO_LINUX_HARDWARE #include @@ -270,7 +269,7 @@ void portduinoSetup() } // attempt to load autoconf data from an EEPROM on 0x50 // RAK6421-13300-S1:aabbcc123456:5ba85807d92138b7519cfb60460573af:3061e8d8 - // :mac address :<16 random unique bytes in hexidecimal> : crc32 + // :mac address :<16 random unique bytes in hexidecimal> : crc32 // crc32 is calculated on the eeprom string up to but not including the final colon if (strlen(autoconf_product) < 6) { try { @@ -311,7 +310,7 @@ void portduinoSetup() // convert crc32 ascii to raw uint32 for (int j = 0; j < 4; j++) { - crc32_value += std::stoi(crc32_str.substr(j*2, 2), nullptr, 16) << (3 - j)*8; + crc32_value += std::stoi(crc32_str.substr(j * 2, 2), nullptr, 16) << (3 - j) * 8; } std::cout << "autoconf: Found eeprom crc " << crc32_start << std::endl; @@ -331,7 +330,7 @@ void portduinoSetup() if (strlen(devID_start) == 32) { std::string devID_str(devID_start); for (int j = 0; j < 16; j++) { - portduino_config.device_id[j] = std::stoi(devID_str.substr(j*2, 2), nullptr, 16); + portduino_config.device_id[j] = std::stoi(devID_str.substr(j * 2, 2), nullptr, 16); } portduino_config.has_device_id = true; }