Skip to content

Commit 2918a70

Browse files
Fix misprint
1 parent c0045c0 commit 2918a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/all-clusters-app/all-clusters-common/src/energy-calendar-instance.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ void CalendarProviderInstance::JsonToDateStruct(Json::Value & root, Structs::Dat
344344
}
345345

346346
t = root.get("DayOfWeek", Json::Value());
347-
if (!t.empty() && t.isUInt() && t.asUInt() >= 1 && t.asUInt() <= 37)
347+
if (!t.empty() && t.isUInt() && t.asUInt() >= 1 && t.asUInt() <= 7)
348348
{
349349
value.dayOfWeek.SetNonNull(t.asUInt());
350350
}

0 commit comments

Comments
 (0)