1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-15 21:27:51 +01:00

BangleJS: added repetitions in alarm json (#2579)

Co-authored-by: rarder44 <rarder44@noreply.codeberg.org>
Co-committed-by: rarder44 <rarder44@noreply.codeberg.org>
This commit is contained in:
rarder44 2022-03-07 10:43:54 +01:00 committed by Andreas Shimokawa
parent 8465409be6
commit c0ca52d2b8

View File

@ -370,9 +370,10 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
jsonalarms.put(jsonalarm); jsonalarms.put(jsonalarm);
Calendar calendar = AlarmUtils.toCalendar(alarm); Calendar calendar = AlarmUtils.toCalendar(alarm);
// TODO: getRepetition to ensure it only happens on correct day?
jsonalarm.put("h", alarm.getHour()); jsonalarm.put("h", alarm.getHour());
jsonalarm.put("m", alarm.getMinute()); jsonalarm.put("m", alarm.getMinute());
jsonalarm.put("rep", alarm.getRepetition());
} }
uartTxJSON("onSetAlarms", o); uartTxJSON("onSetAlarms", o);
} catch (JSONException e) { } catch (JSONException e) {