diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-31 20:55:29 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-31 20:55:29 +0200 |
commit | a46e1aa60efcaf8b52db02f783fc4c0a9dc05878 (patch) | |
tree | b1d3dd584c9f04d6645b3bc3b3a0b62dcebf3a1f /src | |
parent | ee913202991f2a015904b1570bd9f5a62865e5c7 (diff) | |
download | px4-firmware-a46e1aa60efcaf8b52db02f783fc4c0a9dc05878.tar.gz px4-firmware-a46e1aa60efcaf8b52db02f783fc4c0a9dc05878.tar.bz2 px4-firmware-a46e1aa60efcaf8b52db02f783fc4c0a9dc05878.zip |
Fix reschedule logic for SF02/F driver
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/sf0x/sf0x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/sf0x/sf0x.cpp b/src/drivers/sf0x/sf0x.cpp index cf0419075..b690938e7 100644 --- a/src/drivers/sf0x/sf0x.cpp +++ b/src/drivers/sf0x/sf0x.cpp @@ -707,12 +707,12 @@ SF0X::cycle() int collect_ret = collect(); 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, (worker_t)&SF0X::cycle_trampoline, this, - USEC2TICK(1100)); + USEC2TICK(1042 * 8)); return; } |