mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 12:16:17 +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 {
|
||||
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
|
||||
|
||||
@@ -545,7 +545,7 @@ typedef struct packed_struct uavcan_GetNodeInfo_request_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_HardwareVersion_t hardware_version;
|
||||
|
||||
|
||||
@@ -27,24 +27,24 @@ public:
|
||||
* trigger the camera
|
||||
* @param enable
|
||||
*/
|
||||
virtual void trigger(bool enable) {};
|
||||
virtual void trigger(bool enable) {}
|
||||
|
||||
/**
|
||||
* send command to turn the camera on/off
|
||||
* @param enable
|
||||
*/
|
||||
virtual void send_toggle_power(bool enable) {};
|
||||
virtual void send_toggle_power(bool enable) {}
|
||||
|
||||
/**
|
||||
* send command to prevent the camera from sleeping
|
||||
* @param enable
|
||||
*/
|
||||
virtual void send_keep_alive(bool enable) {};
|
||||
virtual void send_keep_alive(bool enable) {}
|
||||
|
||||
/**
|
||||
* Display info.
|
||||
*/
|
||||
virtual void info() {};
|
||||
virtual void info() {}
|
||||
|
||||
/**
|
||||
* Checks if the interface has support for
|
||||
@@ -65,7 +65,7 @@ protected:
|
||||
/**
|
||||
* setup the interface
|
||||
*/
|
||||
virtual void setup() {};
|
||||
virtual void setup() {}
|
||||
|
||||
/**
|
||||
* 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) {
|
||||
msgv[msgs].frequency = _bus_clocks[_bus - 1];;
|
||||
msgv[msgs].frequency = _bus_clocks[_bus - 1];
|
||||
msgv[msgs].addr = _address;
|
||||
msgv[msgs].flags = I2C_M_READ;
|
||||
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)) {
|
||||
Motor[chan].Current = result[0];
|
||||
Motor[chan].MaxPWM = result[1];
|
||||
Motor[chan].Temperature = 255;;
|
||||
Motor[chan].Temperature = 255;
|
||||
|
||||
} else {
|
||||
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,
|
||||
1000,
|
||||
_call_interval - MPU9250_TIMER_REDUCTION,
|
||||
(hrt_callout)&MPU9250::measure_trampoline, this);;
|
||||
(hrt_callout)&MPU9250::measure_trampoline, this);
|
||||
|
||||
} else {
|
||||
#ifdef USE_I2C
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
class QShell
|
||||
{
|
||||
public:
|
||||
QShell() {};
|
||||
~QShell() {};
|
||||
QShell() {}
|
||||
~QShell() {}
|
||||
|
||||
int main(std::vector<std::string> argList);
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class QShell
|
||||
{
|
||||
public:
|
||||
QShell();
|
||||
~QShell() {};
|
||||
~QShell() {}
|
||||
|
||||
int main();
|
||||
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;
|
||||
|
||||
default:
|
||||
return -EINVAL;;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
uint32_t timer = timer_io_channels[channel].timer_index;
|
||||
|
||||
Reference in New Issue
Block a user