From 0e1161b6d7d4c8da1001846c0232fc18f1a52d41 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 27 Mar 2023 23:08:05 -0700 Subject: [PATCH] cleanup --- firmware/boards/f0_module/port.cpp | 5 ++--- firmware/boards/port.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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)]; }; };