From 040edba1f74d67684935cea542c685fac9c360c9 Mon Sep 17 00:00:00 2001 From: thiswillbeyourgithub Date: Wed, 20 Jul 2022 11:41:11 +0200 Subject: [PATCH] fix: asked by daniel_thompson Signed-off-by: thiswillbeyourgithub --- wasp/apps/alarm.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wasp/apps/alarm.py b/wasp/apps/alarm.py index 92389f9..dc8eb29 100644 --- a/wasp/apps/alarm.py +++ b/wasp/apps/alarm.py @@ -6,7 +6,7 @@ ~~~~~~~~~~~~~~~~~~~~ An application to set a vibration alarm. All settings can be accessed from the Watch UI. -Press the button to turn of ringing alarms. +Press the button to turn off ringing alarms. .. figure:: res/AlarmApp.png :width: 179 @@ -91,10 +91,10 @@ class AlarmApp: try: with open("alarms", "r") as f: alarms = "".join(f.readlines()).split(";") - for alarm in alarms: - n = self.num_alarms - self.alarms[n][:] = map(int, alarm.split(",")) - self.num_alarms += 1 + for alarm in alarms: + n = self.num_alarms + self.alarms[n][:] = map(int, alarm.split(",")) + self.num_alarms += 1 except Exception: pass