rcvd

A JS library and a KaiOS 2.5.x application for BLE-enabled Casio watch time synchronization
git clone git://git.luxferre.top/rcvd.git
Log | Files | Refs | README | LICENSE

commit 7f79e5cbf8e473851c3f030e8d7e3e01ea459b6d
parent e277ee2d4b4d11ba20006994384cad6ebdc30bc3
Author: Luxferre <lux@ferre>
Date:   Tue, 25 Oct 2022 17:29:14 +0300

Fixed presync differences

Diffstat:
Mrcvd.js | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/rcvd.js b/rcvd.js @@ -83,7 +83,12 @@ RCVD = (function(nav) { plgen = k => [...Array(6)].map((a,i)=>[k,i]), //property list generator cyclePresyncProperties = _ => new Promise((res, rej) => { - var plist = [[29,0], [29,2], [29,4]].concat((watchModel.indexOf('OCW')>5 || watchModel.indexOf('B2100') > 5) ? [[30,0],[30,1],[31,0],[31,1]] : [...plgen(30),...plgen(31)]); //populate the props list + var slist = [...plgen(30),...plgen(31)] + if(watchModel.indexOf('OCW') > 5) + slist = [[30,0],[30,1]] + else if(watchModel.indexOf('B2100') > 5) + slist = [[30,0],[30,1],[31,0],[31,1]] + var plist = [[29,0], [29,2], [29,4]].concat(slist); //populate the props list (function cycle() { var p = plist.shift() if(p) //we still have properties