bugfix in decoders plain & packed

This commit is contained in:
Verkehrsrot 2019-12-27 12:57:22 +01:00
parent 985548e73e
commit b9949d8eb9
2 changed files with 8 additions and 4 deletions

View File

@ -4,6 +4,8 @@
function Decoder(bytes, port) { function Decoder(bytes, port) {
var decoded = {}; var decoded = {};
decoded.wifi = 0;
decoded.ble = 0;
if (bytes.length === 0) { if (bytes.length === 0) {
return {}; return {};

View File

@ -3,6 +3,8 @@
function Decoder(bytes, port) { function Decoder(bytes, port) {
var decoded = {}; var decoded = {};
decoded.wifi = 0;
decoded.ble = 0;
if (port === 1) { if (port === 1) {
var i = 0; var i = 0;