From 795b248b949e2ba1eb75628fb75d3ae51ba88bbb Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 4 Nov 2025 13:47:41 +0300 Subject: [PATCH] Adapt firmware for non-esp32 boards --- flix/util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flix/util.h b/flix/util.h index 21c416a..39eb28a 100644 --- a/flix/util.h +++ b/flix/util.h @@ -6,8 +6,10 @@ #pragma once #include +#ifdef ESP32 #include #include +#endif const float ONE_G = 9.80665; extern float t; @@ -37,7 +39,9 @@ float wrapAngle(float angle) { // Disable reset on low voltage void disableBrownOut() { +#ifdef ESP32 REG_CLR_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ENA); +#endif } // Trim and split string by spaces