Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 27, 2024
1 parent 532f6b1 commit 261a8cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/downlink_formatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ function decodeDownlink(input) {
case CMD_GET_SENSORS_INC:
case CMD_GET_SENSORS_EXC:
case CMD_GET_BLE_ADDR:
case CMD_GET_BLE_CONFIG:
return {
data: [0],
warnings: [],
Expand Down Expand Up @@ -459,6 +460,13 @@ function decodeDownlink(input) {
sleep_interval_long: uint16BE(input.bytes.slice(3, 4))
}
};
case CMD_GET_BLE_CONFIG:
return {
data: {
ble_active: uint8(input.bytes[0]),
ble_timeout: uint8(input.bytes[1])
}
};
default:
return {
errors: ["unknown FPort"]
Expand Down

0 comments on commit 261a8cf

Please sign in to comment.