mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:38:52 +08:00
Fix code style
This commit is contained in:
committed by
Lorenz Meier
parent
49844f52d5
commit
6d3aba1c5f
@@ -265,7 +265,7 @@ SF1XX::init()
|
|||||||
DEVICE_LOG("failed to create distance_sensor object. Did you start uOrb?");
|
DEVICE_LOG("failed to create distance_sensor object. Did you start uOrb?");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Select altitude register
|
// Select altitude register
|
||||||
int ret2 = measure();
|
int ret2 = measure();
|
||||||
|
|
||||||
if (ret2 == 0) {
|
if (ret2 == 0) {
|
||||||
@@ -561,8 +561,8 @@ SF1XX::start()
|
|||||||
/* reset the report ring and state machine */
|
/* reset the report ring and state machine */
|
||||||
_reports->flush();
|
_reports->flush();
|
||||||
|
|
||||||
/* set register to '0' */
|
/* set register to '0' */
|
||||||
measure();
|
measure();
|
||||||
|
|
||||||
/* schedule a cycle to start things */
|
/* schedule a cycle to start things */
|
||||||
work_queue(HPWORK, &_work, (worker_t)&SF1XX::cycle_trampoline, this, 5);
|
work_queue(HPWORK, &_work, (worker_t)&SF1XX::cycle_trampoline, this, 5);
|
||||||
|
|||||||
Reference in New Issue
Block a user