Browse Source

astyle src/modules/uavcanesc

sbg
Daniel Agar 8 years ago committed by Lorenz Meier
parent
commit
750e5d1690
  1. 2
      src/modules/uavcanesc/led.cpp
  2. 2
      src/modules/uavcanesc/led.hpp
  3. 4
      src/modules/uavcanesc/uavcanesc_main.cpp

2
src/modules/uavcanesc/led.cpp

@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
#include "led.hpp"
void rgb_led(int r, int g , int b, int freqs)
void rgb_led(int r, int g, int b, int freqs)
{
long fosc = 72000000;

2
src/modules/uavcanesc/led.hpp

@ -34,5 +34,5 @@ @@ -34,5 +34,5 @@
#include <systemlib/visibility.h>
__BEGIN_DECLS
void rgb_led(int r, int g , int b, int freqs);
void rgb_led(int r, int g, int b, int freqs);
__END_DECLS

4
src/modules/uavcanesc/uavcanesc_main.cpp

@ -79,7 +79,7 @@ boot_app_shared_section app_descriptor_t AppDescriptor = { @@ -79,7 +79,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 }
};
/*
@ -261,7 +261,7 @@ void UavcanEsc::cb_beginfirmware_update(const uavcan::ReceivedDataStructure<Uavc @@ -261,7 +261,7 @@ void UavcanEsc::cb_beginfirmware_update(const uavcan::ReceivedDataStructure<Uavc
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;

Loading…
Cancel
Save