Commit f7c2beea authored by Skye Yu's avatar Skye Yu

buletooch switch firmware version limit

parent 9f9cf67d
...@@ -806,8 +806,8 @@ Jensen.prototype.setNotification = function (enable, seconds) { ...@@ -806,8 +806,8 @@ Jensen.prototype.setNotification = function (enable, seconds) {
return this.send(new Command(SET_SETTINGS).body([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, enable ? 1 : 2]), seconds); return this.send(new Command(SET_SETTINGS).body([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, enable ? 1 : 2]), seconds);
}; };
Jensen.prototype.setBluetoothPromptPlay = function (enable, seconds) { Jensen.prototype.setBluetoothPromptPlay = function (enable, seconds) {
if (this.model === 'hidock-h1e' && this.versionNumber < 393218) return { result: false } if (this.model === 'hidock-h1e' && this.versionNumber < 393492) return { result: false }
if (this.model === 'hidock-h1' && this.versionNumber < 327732) return { result: false } if (this.model === 'hidock-h1' && this.versionNumber < 327952) return { result: false }
return this.send(new Command(SET_SETTINGS).body([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, enable ? 1 : 2]), seconds); return this.send(new Command(SET_SETTINGS).body([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, enable ? 1 : 2]), seconds);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment