Update info on alarms

This commit is contained in:
Simon Larsson
2020-11-15 21:01:52 +01:00
parent 3e9684151c
commit f099dbe6e6
2 changed files with 3 additions and 3 deletions
-1
View File
@@ -16,7 +16,6 @@ program. Much easier than getting it from the CRT!
## TODO
* Implement protocol for 150 and 150s
* Check if all 5 alarms must be sent every time
* Split up DATA1 packets if too long
* Test everything more extensively (most tests have been comparing to
data from the original Timex software) - set up unit tests
+3 -2
View File
@@ -230,8 +230,9 @@ class TimexData:
data += bytes(makeDATA1(self.appointments, self.todos, self.phonenumbers, self.anniversaries))
data += bytes(makeEND1())
# I don't know if all five alarms must be sent every time.
# If so, make dummy alarms.
# It's not necessary to send all alarms at once. Though this
# will leave the alarms not explicitly overwritten. So it might
## be a good idea to do that. Or make it an option?
if len(self.alarms)>0:
i=1
for a in self.alarms: