Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sensor_box/library/Drone_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool Drone_sensor::start( bool laserState ) {
NRF_SAADC->EVENTS_STARTED = 0;
}
if (NRF_SAADC->EVENTS_STARTED == 0) {
NRF_TIMER2->TASKS_CLEAR = 1;
NRF_TIMER2->TASKS_CLEAR = 1; // clear timer WSchuler
NRF_SAADC->TASKS_START = 1; // start the SAADC
NRF_SAADC->EVENTS_END = 0;
while (NRF_SAADC->EVENTS_STARTED == 0);
Expand Down