Moved settings.savedStatistics, settings.handbremse and settings.espnow

This commit is contained in:
CommanderRedYT
2022-01-03 03:28:05 +01:00
parent da10c84210
commit 0eb3165216
14 changed files with 60 additions and 123 deletions

View File

@ -188,7 +188,7 @@ void handle()
{
if (msg.type == "T")
{
if (!receiveTimeStamp || !settings.espnow.syncTime)
if (!receiveTimeStamp || !configs.espnow.syncTime.value)
return;
if (const auto result = cpputils::fromString<uint64_t>(msg.content); result)
@ -202,7 +202,7 @@ void handle()
}
else if (msg.type == "BOBBYT")
{
if (!receiveTsFromOtherBobbycars || !settings.espnow.syncTimeWithOthers)
if (!receiveTsFromOtherBobbycars || !configs.espnow.syncTimeWithOthers.value)
return;
if (const auto result = cpputils::fromString<uint64_t>(msg.content); result)