1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 06:41:06 +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:
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);
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) {