Skip to content

Commit d000077

Browse files
committed
fix(dronecan): send elapsed ms since last seen in MSP2_INAV_DRONECAN_NODE_INFO
Apply the same fix as MSP2_INAV_DRONECAN_NODES: send millis() - last_seen_ms so the field means elapsed time since last heard from the node.
1 parent 5cc9589 commit d000077

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/fc/fc_msp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4605,7 +4605,7 @@ bool mspFCProcessInOutCommand(uint16_t cmdMSP, sbuf_t *dst, sbuf_t *src, mspResu
46054605
sbufWriteU8(dst, node->mode);
46064606
sbufWriteU32(dst, node->uptime_sec);
46074607
sbufWriteU16(dst, node->vendor_status_code);
4608-
sbufWriteU32(dst, node->last_seen_ms);
4608+
sbufWriteU32(dst, millis() - node->last_seen_ms);
46094609
sbufWriteU8(dst, node->name_len);
46104610
sbufWriteDataSafe(dst, node->name, 32);
46114611
found = true;

0 commit comments

Comments
 (0)