Added multiple supported models
This commit is contained in:
@@ -85,9 +85,14 @@ RCVD = (function(nav) {
|
||||
plgen = k => [...Array(6)].map((a,i)=>[k,i]), //property list generator
|
||||
cyclePresyncProperties = _ => new Promise((res, rej) => {
|
||||
var slist = [...plgen(30),...plgen(31)] //full property list for primary targets, GW-B/GMW-B models
|
||||
if(watchModel.indexOf('OCW') > 5)
|
||||
if(watchModel.indexOf('OCW') > 5 || watchModel.indexOf('GWR-B1000') > 5)
|
||||
slist = [[30,0],[30,1]]
|
||||
else if(watchModel.indexOf('B2100') > 5 || watchModel.indexOf('B001') > 5 || watchModel.indexOf('DW-B5600') > 5 )
|
||||
else if(watchModel.indexOf('B2100') > 5
|
||||
|| watchModel.indexOf('B001') > 5
|
||||
|| watchModel.indexOf('DW-B5600') > 5
|
||||
|| watchModel.indexOf('GST-B') > 5
|
||||
|| watchModel.indexOf('MSG-B') > 5
|
||||
|| watchModel.indexOf('ECB') > 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() {
|
||||
|
||||
Reference in New Issue
Block a user