mirror of
https://github.com/JoelBender/bacpypes
synced 2025-10-27 00:57:47 +08:00
double check day-of-week value, even though it shouldn't match
This commit is contained in:
@@ -1219,6 +1219,10 @@ class Date(Atomic):
|
||||
pass
|
||||
else:
|
||||
day_of_week = int(day_of_week)
|
||||
if (day_of_week == 255):
|
||||
pass
|
||||
elif day_of_week > 7:
|
||||
raise ValueError("invalid day of week")
|
||||
|
||||
# year becomes the correct octet
|
||||
if year != 255:
|
||||
|
||||
Reference in New Issue
Block a user