Merge branch 'combine-lora-msg2' into HEAD
This commit is contained in:
commit
35646546d0
@ -50,8 +50,12 @@ function Decoder(bytes, port) {
|
||||
|
||||
if (port === 4) {
|
||||
// gps data
|
||||
if (bytes.length === 8) {
|
||||
return decode(bytes, [latLng, latLng], ['latitude', 'longitude']);
|
||||
} else {
|
||||
return decode(bytes, [latLng, latLng, uint8, hdop, altitude], ['latitude', 'longitude', 'sats', 'hdop', 'altitude']);
|
||||
}
|
||||
}
|
||||
|
||||
if (port === 5) {
|
||||
// button pressed
|
||||
|
Loading…
Reference in New Issue
Block a user