mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02: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:
committed by
Andreas Shimokawa
parent
8465409be6
commit
c0ca52d2b8
@@ -370,9 +370,10 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
jsonalarms.put(jsonalarm);
|
||||
|
||||
Calendar calendar = AlarmUtils.toCalendar(alarm);
|
||||
// TODO: getRepetition to ensure it only happens on correct day?
|
||||
|
||||
jsonalarm.put("h", alarm.getHour());
|
||||
jsonalarm.put("m", alarm.getMinute());
|
||||
jsonalarm.put("rep", alarm.getRepetition());
|
||||
}
|
||||
uartTxJSON("onSetAlarms", o);
|
||||
} catch (JSONException e) {
|
||||
|
Reference in New Issue
Block a user