From 946a564dccebfa9ee2e04f35d3076e7419df28a2 Mon Sep 17 00:00:00 2001 From: Philippe G Date: Wed, 19 Jan 2022 13:13:32 -0800 Subject: [PATCH] now ready for Muse final fix --- components/targets/muse/muse.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/targets/muse/muse.c b/components/targets/muse/muse.c index d09fa402..1601d64c 100644 --- a/components/targets/muse/muse.c +++ b/components/targets/muse/muse.c @@ -7,7 +7,7 @@ #include #include #include -#include +//#include #include "driver/rmt.h" #include "monitor.h" @@ -43,8 +43,6 @@ void ws2812_write_leds(struct led_state new_state); static const char TAG[] = "muse"; static void (*battery_handler_chain)(float value); - -static void battery(void *data); static void battery_svc(float value); void target_init(void) { @@ -55,10 +53,12 @@ void target_init(void) { static void battery_svc(float value) { ESP_LOGI(TAG, "Called for battery service with %f", value); + // put here your code for LED according to value if (battery_handler_chain) battery_handler_chain(value); } // Battery monitoring +/* static void battery(void *data) { #define VGREEN 2300 @@ -91,6 +91,7 @@ static void battery(void *data) } } +*/ // This is the buffer which the hw peripheral will access while pulsing the output pin rmt_item32_t led_data_buffer[LED_BUFFER_ITEMS];