-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNotifications_ChangeHidingTimeout_200_v1.pbp
32 lines (30 loc) · 1.22 KB
/
Notifications_ChangeHidingTimeout_200_v1.pbp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
; When Pebble receives new notification,
; it will be shown on the screen for 3 minutes.
; After that, if no other notification received,
; it will be hidden and user will be returned to
; main watchface.
; This patch increases that timeout
; from 3 minutes to given timeout, 10 minutes by default.
#ver 200
; this is an option description to be used in site interface.
; math syntax after space controls bounds and conversion:
; bounds are 0..70000, and option should be set to val*60000 (to convert from ms to minutes)
;@notification_hiding_timeout_ms val(0..70000)*60000
; Desired notification hiding timeout.
; Stock default: 5 minutes.
;;
; New timeout to set; defaults to 600000 milliseconds, or 10 minutes
; #default is almost equivalent to #ifndef..#define..#endif,
; but will set value if user passed only name.
#default notification_hiding_timeout_ms 600000
; maximum possible value is 4294967296, i.e. more than 71582 minutes
; end of notifications_schedule_hiding function:
10 bd 03 49 bd e8 10 40 ?4 10 bd
?4 ; memory offset...
@ 20 bf 02 00 ; and the timeout value in milliseconds
{
; replace timeout with our value.
; default is 180000 which means 3min
; let's set it to 10 minutes:
DCD ${notification_hiding_timeout_ms}
}