mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-07-30 18:08:43 -04:00
Added SPIFFS bootstrap
This commit is contained in:
parent
1ec1847474
commit
85cf5f8be3
6 changed files with 1215 additions and 5 deletions
|
@ -22,12 +22,19 @@ volatile bool serial_buffering = false;
|
|||
bool bt_init_ran = false;
|
||||
#endif
|
||||
|
||||
#if HAS_CONSOLE
|
||||
#include "Console.h"
|
||||
#endif
|
||||
|
||||
char sbuf[128];
|
||||
|
||||
#if MCU_VARIANT == MCU_ESP32
|
||||
bool packet_ready = false;
|
||||
#endif
|
||||
|
||||
// TODO: Implement
|
||||
bool console_active = true;
|
||||
|
||||
void setup() {
|
||||
#if MCU_VARIANT == MCU_ESP32
|
||||
boot_seq();
|
||||
|
@ -85,6 +92,10 @@ void setup() {
|
|||
#endif
|
||||
|
||||
kiss_indicate_reset();
|
||||
|
||||
if (console_active) {
|
||||
console_start();
|
||||
}
|
||||
#endif
|
||||
|
||||
// Validate board health, EEPROM and config
|
||||
|
@ -945,7 +956,11 @@ void loop() {
|
|||
|
||||
} else {
|
||||
if (hw_ready) {
|
||||
led_indicate_standby();
|
||||
if (console_active) {
|
||||
console_loop();
|
||||
} else {
|
||||
led_indicate_standby();
|
||||
}
|
||||
} else {
|
||||
|
||||
led_indicate_not_ready();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue