mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
More compiler warning fixes
This commit is contained in:
parent
715d269f61
commit
30bea67d38
3 changed files with 12 additions and 9 deletions
|
@ -176,7 +176,6 @@ void LED::rainbow_run(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Assemble the color
|
// Assemble the color
|
||||||
//uint32_t color = (static_cast<uint32_t>(r) << 16) | (static_cast<uint32_t>(g) << 8) | b;
|
|
||||||
pixels.setPixelColor(0, pixels.Color(r, g, b)); // RGB
|
pixels.setPixelColor(0, pixels.Color(r, g, b)); // RGB
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.begin(ssid, password, wifi_channel);
|
||||||
WiFi.setAutoReconnect(true); // Enable auto reconnect
|
WiFi.setAutoReconnect(true); // Enable auto reconnect
|
||||||
wl_status_t result = static_cast<wl_status_t>(WiFi.waitForConnectResult(INIT_WIFI_CONNECT_TIMEOUT));
|
wl_status_t result = static_cast<wl_status_t>(WiFi.waitForConnectResult(INIT_WIFI_CONNECT_TIMEOUT));
|
||||||
|
if (result) {
|
||||||
|
//TODO: Add event or serial print?
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to initialize ElegantOTA
|
// Function to initialize ElegantOTA
|
||||||
|
|
|
@ -78,16 +78,17 @@ class ISA
|
||||||
char buffer[9];
|
char buffer[9];
|
||||||
char bigbuffer[90];
|
char bigbuffer[90];
|
||||||
uint32_t inbox;
|
uint32_t inbox;
|
||||||
CAN_frame_t outframe = {.FIR = {.B =
|
CAN_frame_t outframe = {
|
||||||
{
|
.FIR = {.B = {
|
||||||
.DLC = 8,
|
.DLC = 8,
|
||||||
|
.unknown_2 = 0,
|
||||||
|
.RTR = CAN_no_RTR,
|
||||||
.FF = CAN_frame_std,
|
.FF = CAN_frame_std,
|
||||||
}},
|
}},
|
||||||
.MsgID = 0x411,
|
.MsgID = 0x411,
|
||||||
.data = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
|
.data = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void printCAN(CAN_frame_t *frame);
|
void printCAN(CAN_frame_t *frame);
|
||||||
void handle521(CAN_frame_t *frame);
|
void handle521(CAN_frame_t *frame);
|
||||||
void handle522(CAN_frame_t *frame);
|
void handle522(CAN_frame_t *frame);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue