mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
UavcanNode:Support optional board_app_shared_read
This commit is contained in:
parent
479c1524b1
commit
1a2a02b7ae
@ -743,8 +743,15 @@ extern "C" int uavcannode_start(int argc, char *argv[])
|
||||
int32_t node_id = 0;
|
||||
|
||||
// Did the bootloader auto baud and get a node ID Allocated
|
||||
int valid = -1;
|
||||
bootloader_app_shared_t shared;
|
||||
int valid = bootloader_app_shared_read(&shared, BootLoader);
|
||||
|
||||
if (board_app_shared_read) {
|
||||
valid = board_app_shared_read(&shared, BootLoader);
|
||||
|
||||
} else {
|
||||
valid = bootloader_app_shared_read(&shared, BootLoader);
|
||||
}
|
||||
|
||||
if (valid == 0) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user