diff --git a/firmware/boards/f0_module/port.cpp b/firmware/boards/f0_module/port.cpp index 8ead22a..e49ead1 100644 --- a/firmware/boards/f0_module/port.cpp +++ b/firmware/boards/f0_module/port.cpp @@ -146,7 +146,7 @@ SensorType GetSensorType() return SensorType::LSU49; } -void SetupESRDriver(SensorType sensor) +void SetupESRDriver(SensorType) { // NOP } @@ -157,8 +157,7 @@ int GetESRSupplyR() return 22000; } -void ToggleESRDriver(SensorType sensor) +void ToggleESRDriver(SensorType) { - (void)sensor; palTogglePad(NERNST_49_ESR_DRIVER_PORT, NERNST_49_ESR_DRIVER_PIN); } diff --git a/firmware/boards/port.h b/firmware/boards/port.h index 9022bd7..902a637 100644 --- a/firmware/boards/port.h +++ b/firmware/boards/port.h @@ -60,7 +60,7 @@ public: } __attribute__((packed)); // pad to 256 bytes including tag - uint8_t pad[256 - 4]; + uint8_t pad[256 - sizeof(Tag)]; }; };