From fdde38c203456d16b43615e5af016a883883bd45 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 22 Aug 2022 18:07:59 -0400 Subject: [PATCH] better method name --- firmware/console/status_loop.cpp | 2 +- firmware/hw_layer/sensors/max31855.cpp | 2 +- firmware/hw_layer/sensors/max31855.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/console/status_loop.cpp b/firmware/console/status_loop.cpp index 7e389ec637..ecd8dad350 100644 --- a/firmware/console/status_loop.cpp +++ b/firmware/console/status_loop.cpp @@ -808,7 +808,7 @@ void updateTunerStudioState() { #if EFI_MAX_31855 for (int i = 0; i < EGT_CHANNEL_COUNT; i++) - tsOutputChannels->egt[i] = getEgtValue(i); + tsOutputChannels->egt[i] = getMax31855EgtValue(i); #endif /* EFI_MAX_31855 */ #if EFI_IDLE_CONTROL diff --git a/firmware/hw_layer/sensors/max31855.cpp b/firmware/hw_layer/sensors/max31855.cpp index c04fa9b5a3..0ee931db18 100644 --- a/firmware/hw_layer/sensors/max31855.cpp +++ b/firmware/hw_layer/sensors/max31855.cpp @@ -101,7 +101,7 @@ static uint32_t readEgtPacket(int egtChannel) { #define GET_TEMPERATURE_C(x) (((x) >> 18) / 4) -uint16_t getEgtValue(int egtChannel) { +uint16_t getMax31855EgtValue(int egtChannel) { uint32_t packet = readEgtPacket(egtChannel); max_32855_code code = getResultCode(packet); if (code != MC_OK) { diff --git a/firmware/hw_layer/sensors/max31855.h b/firmware/hw_layer/sensors/max31855.h index 37651ae403..645a8b1b5a 100644 --- a/firmware/hw_layer/sensors/max31855.h +++ b/firmware/hw_layer/sensors/max31855.h @@ -14,5 +14,5 @@ void initMax31855(spi_device_e device, egt_cs_array_t max31855_cs); #endif /* HAL_USE_SPI */ -uint16_t getEgtValue(int egtChannel); +uint16_t getMax31855EgtValue(int egtChannel);