From 25d06056209c0545cfc82a594bfe5ab6055fead7 Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Thu, 14 Aug 2025 20:33:09 +0800 Subject: [PATCH] Fixed arduino ide compile error https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/issues/253 --- examples/T3S3Factory/T3S3Factory.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/T3S3Factory/T3S3Factory.ino b/examples/T3S3Factory/T3S3Factory.ino index 94f7000..0d54ae9 100644 --- a/examples/T3S3Factory/T3S3Factory.ino +++ b/examples/T3S3Factory/T3S3Factory.ino @@ -227,8 +227,9 @@ void setup() digitalWrite(RADIO_TCXO_ENABLE, HIGH); #endif + const uint8_t btn_num = BUTTON_PIN; pinMode(BUTTON_PIN, INPUT_PULLUP); - button.init(BUTTON_PIN); + button.init(btn_num); ButtonConfig *buttonConfig = button.getButtonConfig(); buttonConfig->setEventHandler(handleEvent); buttonConfig->setFeature(ButtonConfig::kFeatureClick);