From 8d1674c3e5cfe1a1f0b89c42f79ea2133c7ef74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 12 Nov 2024 18:33:33 +0100 Subject: [PATCH] typo --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 203075da0..a64055e6d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1105,12 +1105,12 @@ void setup() LOG_WARN("PWM init fail P%d\n", RADIO_FAN_EN); } #elif defined(ARCH_NRF52) - pinMode(RF95_FAN_PWM, OUTPUT); - analogWrite(RF95_FAN_PWM, config.lora.pa_fan_disabled ? 0 : (pa_fan_percentage * 2.55)); + pinMode(RADIO_FAN_EN, OUTPUT); + analogWrite(RADIO_FAN_EN, config.lora.pa_fan_disabled ? 0 : (pa_fan_percentage * 2.55)); #endif #else // Set up as ON/OFF switch of fan - pinMode(RF95_FAN_EN, OUTPUT); + pinMode(RADIO_FAN_EN, OUTPUT); digitalWrite(RADIO_FAN_EN, LOW ^ 0); #endif #endif