on ESP32, paths always start with /

This commit is contained in:
folkert van heusden 2024-05-20 20:36:17 +02:00
parent 7b8abd483e
commit f6d8927d23
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -693,7 +693,11 @@ void serdc11(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);
#endif
if (rc.has_value() == false) {
cnsl->put_string_lf("Failed to deserialize " SERIAL_CFG_FILE);
return;