Commit 5cc9589
committed
fix(dronecan): send elapsed ms since last seen in MSP2_INAV_DRONECAN_NODES
Previously last_seen_ms was the raw millis() timestamp when the node was
last heard from, which equals FC uptime for active nodes. Configurators
had no way to compute elapsed time without knowing current FC millis().
Now sends millis() - last_seen_ms so the field means "ms since this node
was last heard from". Unsigned subtraction handles millis() wraparound
correctly.1 parent a6f738f commit 5cc9589
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1899 | 1899 | | |
1900 | 1900 | | |
1901 | 1901 | | |
1902 | | - | |
| 1902 | + | |
1903 | 1903 | | |
1904 | 1904 | | |
1905 | 1905 | | |
| |||
0 commit comments