mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 14:58:54 +08:00
samv7:tone_alarm refactor for Cdev
This commit is contained in:
committed by
Lorenz Meier
parent
75d7800deb
commit
9246110161
@@ -229,7 +229,7 @@ extern "C" __EXPORT int tone_alarm_main(int argc, char *argv[]);
|
||||
|
||||
|
||||
ToneAlarm::ToneAlarm() :
|
||||
CDev(TONEALARM0_DEVICE_PATH),
|
||||
CDev(TONEALARM0_DEVICE_PATH),
|
||||
_running(false),
|
||||
_should_run(true),
|
||||
_play_tone(false),
|
||||
@@ -289,7 +289,6 @@ int ToneAlarm::init()
|
||||
/* make sure the timer is running */
|
||||
rCR1 = GTIM_CR1_CEN;
|
||||
#endif
|
||||
DEVICE_DEBUG("ready");
|
||||
_running = true;
|
||||
work_queue(HPWORK, &_work, (worker_t)&ToneAlarm::next_trampoline, this, 0);
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user