mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 14:01:36 +08:00
Fix reschedule logic for SF02/F driver
This commit is contained in:
@@ -707,12 +707,12 @@ SF0X::cycle()
|
|||||||
int collect_ret = collect();
|
int collect_ret = collect();
|
||||||
|
|
||||||
if (collect_ret == -EAGAIN) {
|
if (collect_ret == -EAGAIN) {
|
||||||
/* reschedule to grab the missing bits, time to transmit 10 bytes @9600 bps */
|
/* reschedule to grab the missing bits, time to transmit 8 bytes @ 9600 bps */
|
||||||
work_queue(HPWORK,
|
work_queue(HPWORK,
|
||||||
&_work,
|
&_work,
|
||||||
(worker_t)&SF0X::cycle_trampoline,
|
(worker_t)&SF0X::cycle_trampoline,
|
||||||
this,
|
this,
|
||||||
USEC2TICK(1100));
|
USEC2TICK(1042 * 8));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user