Update testing.ttnv2.js

master
cheetah 4 years ago
parent 160be3b09b
commit b4f04cb3c8

@ -1,3 +1,4 @@
function Decoder(bytes, port) { function Decoder(bytes, port) {
var data = {} var data = {}
function bytesToString(a) { function bytesToString(a) {
@ -32,7 +33,7 @@ function Decoder(bytes, port) {
} else { } else {
data.type = 'status' data.type = 'status'
data.status = bytes[0] * 1 data.status = bytes[0] * 1
data.selection = bytes[1] * 2 data.selection = bytes[1] * 1
} }
break; break;
case 4: // Battery and Power Notifications case 4: // Battery and Power Notifications

Loading…
Cancel
Save