forked from Michel2/pytimex
Update info on alarms
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user