diff --git a/Software/src/devboard/utils/led_handler.cpp b/Software/src/devboard/utils/led_handler.cpp index 451ca34e..16b2edfa 100644 --- a/Software/src/devboard/utils/led_handler.cpp +++ b/Software/src/devboard/utils/led_handler.cpp @@ -176,7 +176,6 @@ void LED::rainbow_run(void) { } // Assemble the color - //uint32_t color = (static_cast(r) << 16) | (static_cast(g) << 8) | b; pixels.setPixelColor(0, pixels.Color(r, g, b)); // RGB } diff --git a/Software/src/devboard/webserver/webserver.cpp b/Software/src/devboard/webserver/webserver.cpp index 694c19cf..2907395a 100644 --- a/Software/src/devboard/webserver/webserver.cpp +++ b/Software/src/devboard/webserver/webserver.cpp @@ -346,6 +346,9 @@ void init_WiFi_STA(const char* ssid, const char* password, const uint8_t wifi_ch WiFi.begin(ssid, password, wifi_channel); WiFi.setAutoReconnect(true); // Enable auto reconnect wl_status_t result = static_cast(WiFi.waitForConnectResult(INIT_WIFI_CONNECT_TIMEOUT)); + if (result) { + //TODO: Add event or serial print? + } } // Function to initialize ElegantOTA diff --git a/Software/src/lib/smaresca-SimpleISA/SimpleISA.h b/Software/src/lib/smaresca-SimpleISA/SimpleISA.h index 6f6b4cfc..4475b76d 100644 --- a/Software/src/lib/smaresca-SimpleISA/SimpleISA.h +++ b/Software/src/lib/smaresca-SimpleISA/SimpleISA.h @@ -78,16 +78,17 @@ class ISA char buffer[9]; char bigbuffer[90]; uint32_t inbox; - CAN_frame_t outframe = {.FIR = {.B = - { - .DLC = 8, - .FF = CAN_frame_std, - }}, - .MsgID = 0x411, - .data = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; + CAN_frame_t outframe = { + .FIR = {.B = { + .DLC = 8, + .unknown_2 = 0, + .RTR = CAN_no_RTR, + .FF = CAN_frame_std, + }}, + .MsgID = 0x411, + .data = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; - void printCAN(CAN_frame_t *frame); void handle521(CAN_frame_t *frame); void handle522(CAN_frame_t *frame);