Added multiple supported models

This commit is contained in:
Luxferre
2022-12-23 21:16:49 +02:00
parent 9a6d2acc31
commit 992e6a6833
2 changed files with 21 additions and 4 deletions
+7 -2
View File
@@ -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() {