From 77893799149098908d2ce774f9bb7bbd4c844ce9 Mon Sep 17 00:00:00 2001 From: Ryan Horricks Date: Sat, 18 Mar 2023 18:29:19 -0600 Subject: [PATCH 1/3] Fix typing to resolve build errors after installing the mpu6050_imu usermod. --- usermods/mpu6050_imu/usermod_mpu6050_imu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usermods/mpu6050_imu/usermod_mpu6050_imu.h b/usermods/mpu6050_imu/usermod_mpu6050_imu.h index 283c986e..b4dc01a4 100644 --- a/usermods/mpu6050_imu/usermod_mpu6050_imu.h +++ b/usermods/mpu6050_imu/usermod_mpu6050_imu.h @@ -209,7 +209,7 @@ class MPU6050Driver : public Usermod { JsonObject user = root["u"]; if (user.isNull()) user = root.createNestedObject("u"); - JsonArray imu_meas = user.createNestedObject("IMU"); + JsonObject imu_meas = user.createNestedObject("IMU"); JsonArray quat_json = imu_meas.createNestedArray("Quat"); quat_json.add(qat.w); quat_json.add(qat.x); @@ -287,4 +287,4 @@ class MPU6050Driver : public Usermod { return USERMOD_ID_IMU; } -}; \ No newline at end of file +}; From fd8920923346a5131d3ebd212090a48731d856a2 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sun, 19 Mar 2023 14:42:01 +0100 Subject: [PATCH 2/3] adding WLED_DISABLE_ADALIGHT (issue #3128 This flag disables reading commands from serial interface (RX = gpio 3) Add -D WLED_DISABLE_ADALIGHT to your custom pio build environment. --- wled00/wled.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wled00/wled.h b/wled00/wled.h index b51a8540..65512ea7 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -30,7 +30,11 @@ #ifndef WLED_DISABLE_MQTT #define WLED_ENABLE_MQTT // saves 12kb #endif -#define WLED_ENABLE_ADALIGHT // saves 500b only (uses GPIO3 (RX) for serial) +#ifndef WLED_DISABLE_ADALIGHT // can be used to disable reading commands from serial RX pin (see issue #3128). + #define WLED_ENABLE_ADALIGHT // disable saves 5Kb (uses GPIO3 (RX) for serial). Related serial protocols: APALIGHT/TPM2, IMPROV, Continuous Serial Streaming +#else + #undef WLED_ENABLE_ADALIGHT // disable has priority over enable +#endif //#define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2) //#define WLED_ENABLE_JSONLIVE // peek LED output via /json/live (WS binary peek is always enabled) #ifndef WLED_DISABLE_LOXONE From c9be03c0bca40ea1993746edab62e5a2d7079e07 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sun, 19 Mar 2023 14:48:47 +0100 Subject: [PATCH 3/3] typo --- wled00/wled.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/wled.h b/wled00/wled.h index 65512ea7..729207c6 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -31,7 +31,7 @@ #define WLED_ENABLE_MQTT // saves 12kb #endif #ifndef WLED_DISABLE_ADALIGHT // can be used to disable reading commands from serial RX pin (see issue #3128). - #define WLED_ENABLE_ADALIGHT // disable saves 5Kb (uses GPIO3 (RX) for serial). Related serial protocols: APALIGHT/TPM2, IMPROV, Continuous Serial Streaming + #define WLED_ENABLE_ADALIGHT // disable saves 5Kb (uses GPIO3 (RX) for serial). Related serial protocols: Adalight/TPM2, Improv, Continuous Serial Streaming #else #undef WLED_ENABLE_ADALIGHT // disable has priority over enable #endif