mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2024-07-02 14:34:13 +02:00
Fixed missing free in display handler
This commit is contained in:
parent
18c0f65295
commit
b93e321d39
@ -356,7 +356,7 @@ void draw_disp_area() {
|
|||||||
uint8_t offset = numeric*5;
|
uint8_t offset = numeric*5;
|
||||||
disp_area.drawBitmap(7+9*i, 37+16, bm_n_uh+offset, 8, 5, SSD1306_WHITE, SSD1306_BLACK);
|
disp_area.drawBitmap(7+9*i, 37+16, bm_n_uh+offset, 8, 5, SSD1306_WHITE, SSD1306_BLACK);
|
||||||
}
|
}
|
||||||
|
free(pin_str);
|
||||||
} else {
|
} else {
|
||||||
if (millis()-last_page_flip >= page_interval) {
|
if (millis()-last_page_flip >= page_interval) {
|
||||||
disp_page = (++disp_page%pages);
|
disp_page = (++disp_page%pages);
|
||||||
@ -398,6 +398,7 @@ void draw_disp_area() {
|
|||||||
if (i == 2) dxp += 9*2+4;
|
if (i == 2) dxp += 9*2+4;
|
||||||
disp_area.drawBitmap(dxp, 37+16, bm_n_uh+bm_offset, 8, 5, SSD1306_WHITE, SSD1306_BLACK);
|
disp_area.drawBitmap(dxp, 37+16, bm_n_uh+bm_offset, 8, 5, SSD1306_WHITE, SSD1306_BLACK);
|
||||||
}
|
}
|
||||||
|
free(v_str);
|
||||||
disp_area.drawLine(27, 37+19, 28, 37+19, SSD1306_BLACK);
|
disp_area.drawLine(27, 37+19, 28, 37+19, SSD1306_BLACK);
|
||||||
disp_area.drawLine(27, 37+20, 28, 37+20, SSD1306_BLACK);
|
disp_area.drawLine(27, 37+20, 28, 37+20, SSD1306_BLACK);
|
||||||
}
|
}
|
||||||
|
@ -989,7 +989,7 @@ void loop() {
|
|||||||
if (console_active) {
|
if (console_active) {
|
||||||
console_loop();
|
console_loop();
|
||||||
} else {
|
} else {
|
||||||
//led_indicate_standby();
|
led_indicate_standby();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
@ -999,10 +999,8 @@ void loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if MCU_VARIANT == MCU_ESP32
|
#if MCU_VARIANT == MCU_ESP32
|
||||||
// if (!console_active) {
|
|
||||||
buffer_serial();
|
buffer_serial();
|
||||||
if (!fifo_isempty(&serialFIFO)) serial_poll();
|
if (!fifo_isempty(&serialFIFO)) serial_poll();
|
||||||
// }
|
|
||||||
#else
|
#else
|
||||||
if (!fifo_isempty_locked(&serialFIFO)) serial_poll();
|
if (!fifo_isempty_locked(&serialFIFO)) serial_poll();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user