on ESP32, paths always start with /
This commit is contained in:
parent
7b8abd483e
commit
f6d8927d23
1 changed files with 4 additions and 0 deletions
|
@ -693,7 +693,11 @@ void serdc11(console *const cnsl, bus *const b)
|
||||||
|
|
||||||
void deserdc11(console *const cnsl, bus *const b)
|
void deserdc11(console *const cnsl, bus *const b)
|
||||||
{
|
{
|
||||||
|
#if defined(ESP32)
|
||||||
|
auto rc = deserialize_file("/" SERIAL_CFG_FILE);
|
||||||
|
#else
|
||||||
auto rc = deserialize_file(SERIAL_CFG_FILE);
|
auto rc = deserialize_file(SERIAL_CFG_FILE);
|
||||||
|
#endif
|
||||||
if (rc.has_value() == false) {
|
if (rc.has_value() == false) {
|
||||||
cnsl->put_string_lf("Failed to deserialize " SERIAL_CFG_FILE);
|
cnsl->put_string_lf("Failed to deserialize " SERIAL_CFG_FILE);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue