mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
astyle src/modules/uavcannode
This commit is contained in:
committed by
Lorenz Meier
parent
019c6647f2
commit
380819dfc5
@@ -103,7 +103,7 @@ boot_app_shared_section app_descriptor_t AppDescriptor = {
|
||||
.vcs_commit = 0,
|
||||
.major_version = APP_VERSION_MAJOR,
|
||||
.minor_version = APP_VERSION_MINOR,
|
||||
.reserved = {0xff , 0xff , 0xff , 0xff , 0xff , 0xff }
|
||||
.reserved = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff }
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -288,7 +288,7 @@ void UavcanNode::cb_beginfirmware_update(const uavcan::ReceivedDataStructure<Uav
|
||||
shared.bus_speed = active_bitrate;
|
||||
shared.node_id = _node.getNodeID().get();
|
||||
bootloader_app_shared_write(&shared, App);
|
||||
rgb_led(255, 128 , 0 , 5);
|
||||
rgb_led(255, 128, 0, 5);
|
||||
_reset_timer.setCallback(cb_reboot);
|
||||
_reset_timer.startOneShotWithDelay(uavcan::MonotonicDuration::fromMSec(1000));
|
||||
rsp.error = rsp.ERROR_OK;
|
||||
|
||||
Reference in New Issue
Block a user