Fix: read tariff configuration file

This commit is contained in:
Siegfried Siegert 2023-11-22 10:17:40 +01:00
parent f7e462188f
commit 509bc29d7e
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -59,8 +59,9 @@ bool Configuration::ParseJson(Configuration* cfg, const char* json)
|| !document.HasMember("PaymentRate") || !document.HasMember("PaymentRate")
|| !document.HasMember("Duration") || !document.HasMember("Duration")
//|| !document.HasMember("WeekDays") //|| !document.HasMember("WeekDays")
|| !document.HasMember("SpecialDaysWorktime") //|| !document.HasMember("SpecialDaysWorktime")
|| !document.HasMember("SpecialDays")) //|| !document.HasMember("SpecialDays")
)
{ {
printf("%s", "Error: not a valid configuration JSON\n"); printf("%s", "Error: not a valid configuration JSON\n");
return false; return false;