mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
drivers remove extra semicolons
This commit is contained in:
committed by
Nuno Marques
parent
a87b6befbb
commit
58268c832c
@@ -101,7 +101,7 @@ __EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
pdump->info.stacks.user.top = (uint32_t) rtcb->adj_stack_ptr;
|
pdump->info.stacks.user.top = (uint32_t) rtcb->adj_stack_ptr;
|
||||||
pdump->info.stacks.user.size = (uint32_t) rtcb->adj_stack_size;;
|
pdump->info.stacks.user.size = (uint32_t) rtcb->adj_stack_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_ARCH_INTERRUPTSTACK > 3
|
#if CONFIG_ARCH_INTERRUPTSTACK > 3
|
||||||
|
|||||||
@@ -545,7 +545,7 @@ typedef struct packed_struct uavcan_GetNodeInfo_request_t {
|
|||||||
|
|
||||||
typedef struct packed_struct uavcan_GetNodeInfo_response_t {
|
typedef struct packed_struct uavcan_GetNodeInfo_response_t {
|
||||||
|
|
||||||
uavcan_NodeStatus_t nodes_status;;
|
uavcan_NodeStatus_t nodes_status;
|
||||||
uavcan_SoftwareVersion_t software_version;
|
uavcan_SoftwareVersion_t software_version;
|
||||||
uavcan_HardwareVersion_t hardware_version;
|
uavcan_HardwareVersion_t hardware_version;
|
||||||
|
|
||||||
|
|||||||
@@ -27,24 +27,24 @@ public:
|
|||||||
* trigger the camera
|
* trigger the camera
|
||||||
* @param enable
|
* @param enable
|
||||||
*/
|
*/
|
||||||
virtual void trigger(bool enable) {};
|
virtual void trigger(bool enable) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* send command to turn the camera on/off
|
* send command to turn the camera on/off
|
||||||
* @param enable
|
* @param enable
|
||||||
*/
|
*/
|
||||||
virtual void send_toggle_power(bool enable) {};
|
virtual void send_toggle_power(bool enable) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* send command to prevent the camera from sleeping
|
* send command to prevent the camera from sleeping
|
||||||
* @param enable
|
* @param enable
|
||||||
*/
|
*/
|
||||||
virtual void send_keep_alive(bool enable) {};
|
virtual void send_keep_alive(bool enable) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display info.
|
* Display info.
|
||||||
*/
|
*/
|
||||||
virtual void info() {};
|
virtual void info() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the interface has support for
|
* Checks if the interface has support for
|
||||||
@@ -65,7 +65,7 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* setup the interface
|
* setup the interface
|
||||||
*/
|
*/
|
||||||
virtual void setup() {};
|
virtual void setup() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the hardware configuration
|
* get the hardware configuration
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ I2C::transfer(const uint8_t *send, unsigned send_len, uint8_t *recv, unsigned re
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (recv_len > 0) {
|
if (recv_len > 0) {
|
||||||
msgv[msgs].frequency = _bus_clocks[_bus - 1];;
|
msgv[msgs].frequency = _bus_clocks[_bus - 1];
|
||||||
msgv[msgs].addr = _address;
|
msgv[msgs].addr = _address;
|
||||||
msgv[msgs].flags = I2C_M_READ;
|
msgv[msgs].flags = I2C_M_READ;
|
||||||
msgv[msgs].buffer = recv;
|
msgv[msgs].buffer = recv;
|
||||||
|
|||||||
@@ -779,7 +779,7 @@ MK::mk_servo_set(unsigned int chan, short val)
|
|||||||
if (OK == transfer(&msg[0], 1, &result[0], 2)) {
|
if (OK == transfer(&msg[0], 1, &result[0], 2)) {
|
||||||
Motor[chan].Current = result[0];
|
Motor[chan].Current = result[0];
|
||||||
Motor[chan].MaxPWM = result[1];
|
Motor[chan].MaxPWM = result[1];
|
||||||
Motor[chan].Temperature = 255;;
|
Motor[chan].Temperature = 255;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ((Motor[chan].State & MOTOR_STATE_ERROR_MASK) < MOTOR_STATE_ERROR_MASK) { Motor[chan].State++; } // error
|
if ((Motor[chan].State & MOTOR_STATE_ERROR_MASK) < MOTOR_STATE_ERROR_MASK) { Motor[chan].State++; } // error
|
||||||
|
|||||||
@@ -1132,7 +1132,7 @@ MPU9250::start()
|
|||||||
hrt_call_every(&_call,
|
hrt_call_every(&_call,
|
||||||
1000,
|
1000,
|
||||||
_call_interval - MPU9250_TIMER_REDUCTION,
|
_call_interval - MPU9250_TIMER_REDUCTION,
|
||||||
(hrt_callout)&MPU9250::measure_trampoline, this);;
|
(hrt_callout)&MPU9250::measure_trampoline, this);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
#ifdef USE_I2C
|
#ifdef USE_I2C
|
||||||
|
|||||||
@@ -48,8 +48,8 @@
|
|||||||
class QShell
|
class QShell
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QShell() {};
|
QShell() {}
|
||||||
~QShell() {};
|
~QShell() {}
|
||||||
|
|
||||||
int main(std::vector<std::string> argList);
|
int main(std::vector<std::string> argList);
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ class QShell
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QShell();
|
QShell();
|
||||||
~QShell() {};
|
~QShell() {}
|
||||||
|
|
||||||
int main();
|
int main();
|
||||||
int run_cmd(const std::vector<std::string> &appargs);
|
int run_cmd(const std::vector<std::string> &appargs);
|
||||||
|
|||||||
@@ -393,7 +393,7 @@ int up_input_capture_set_trigger(unsigned channel, input_capture_edge edge)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return -EINVAL;;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t timer = timer_io_channels[channel].timer_index;
|
uint32_t timer = timer_io_channels[channel].timer_index;
|
||||||
|
|||||||
Reference in New Issue
Block a user