Skip to content

Commit

Permalink
DAC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Mar 15, 2024
1 parent 632e099 commit 793ce62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_DAC/AP_DAC_DACx0501.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#if AP_DAC_DACx0501_ENABLED
#include <SRV_Channel/SRV_Channel.h>
#include <AP_Math/AP_Math.h>

extern const AP_HAL::HAL &hal;

Expand Down Expand Up @@ -74,7 +75,7 @@ void AP_DAC_DACx0501::init()
}

_dev->set_retries(3);
_dev->register_periodic_callback(20 * AP_USEC_PER_MSEC, FUNCTOR_BIND_MEMBER(&AP_DAC_DACx0501::thread, void));
_dev->register_periodic_callback(20 * 1000, FUNCTOR_BIND_MEMBER(&AP_DAC_DACx0501::thread, void));
}

void AP_DAC_DACx0501::thread()
Expand Down

0 comments on commit 793ce62

Please sign in to comment.