From c46bc8ecce0161b72790e41ef4369ad6062d9895 Mon Sep 17 00:00:00 2001 From: Matthias Mitscherlich Date: Thu, 23 Nov 2023 20:24:22 +0100 Subject: [PATCH] fixed compiler errrors --- code/main/main.cpp | 2 +- code/main/src/wordmap.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/main/main.cpp b/code/main/main.cpp index 99ec32f..961acab 100644 --- a/code/main/main.cpp +++ b/code/main/main.cpp @@ -164,7 +164,7 @@ extern "C" void app_main(void) memset(&tx_chan_config, 0, sizeof(tx_chan_config)); tx_chan_config.clk_src = RMT_CLK_SRC_DEFAULT; // select source clock - tx_chan_config.gpio_num = RMT_LED_STRIP_GPIO_NUM; + tx_chan_config.gpio_num = (gpio_num_t)RMT_LED_STRIP_GPIO_NUM; tx_chan_config.mem_block_symbols = 64; // increase the block size can make the LED less flickering tx_chan_config.resolution_hz = RMT_LED_STRIP_RESOLUTION_HZ; tx_chan_config.trans_queue_depth = 4; diff --git a/code/main/src/wordmap.cpp b/code/main/src/wordmap.cpp index 3f7c385..bd92ff6 100644 --- a/code/main/src/wordmap.cpp +++ b/code/main/src/wordmap.cpp @@ -20,6 +20,8 @@ #include "wordmap.h" #include "logger.h" + +#include // -------------------------------------------------------------------------------------------------------------------- // Constant and macro definitions // --------------------------------------------------------------------------------------------------------------------