From 68711261001731edd0cbad8b42c78bb58e98f05c Mon Sep 17 00:00:00 2001 From: Arjan Onwezen Date: Fri, 3 Sep 2021 16:14:16 +0200 Subject: [PATCH] changed datatype to be able to store > 255 second for backlight timer --- firmware/application/portapack.cpp | 2 +- firmware/application/portapack.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/portapack.cpp b/firmware/application/portapack.cpp index 44fc1db7..c4f03855 100644 --- a/firmware/application/portapack.cpp +++ b/firmware/application/portapack.cpp @@ -83,7 +83,7 @@ TransmitterModel transmitter_model; TemperatureLogger temperature_logger; bool antenna_bias { false }; -uint8_t bl_tick_counter { 0 }; +uint32_t bl_tick_counter { 0 }; void set_antenna_bias(const bool v) { antenna_bias = v; diff --git a/firmware/application/portapack.hpp b/firmware/application/portapack.hpp index c46a8d42..a34d93a6 100644 --- a/firmware/application/portapack.hpp +++ b/firmware/application/portapack.hpp @@ -54,7 +54,7 @@ extern TransmitterModel transmitter_model; extern bool speaker_mode; void set_speaker_mode(const bool v); -extern uint8_t bl_tick_counter; +extern uint32_t bl_tick_counter; extern bool antenna_bias; extern TemperatureLogger temperature_logger;