decode build number

This commit is contained in:
Jonas Leder 2025-06-28 14:41:46 +02:00
commit 42f474e4fc

View file

@ -24,6 +24,11 @@ function decodeUplink(input) {
data[`currentSensorV${i + 1}`] = value;
data[`currentSensorA${i + 1}`] = (value - 1.65 ) * currentSensorAmp;
}
const versionLow = input.bytes[13];
const versionHigh = input.bytes[14];
const version = ((versionHigh << 8) + versionLow); // little-endian decoding
data["build"] = version;
return { data };
}