From 6dcf6f455872656f8c8ee5cdb81033f2d7b28363 Mon Sep 17 00:00:00 2001 From: weschuler <137447708+weschuler@users.noreply.github.com> Date: Thu, 18 Jan 2024 15:32:29 -0500 Subject: [PATCH] Update Drone_sensor.cpp - WSchuler New comments --- sensor_box/library/Drone_sensor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensor_box/library/Drone_sensor.cpp b/sensor_box/library/Drone_sensor.cpp index 809356c..37e0141 100644 --- a/sensor_box/library/Drone_sensor.cpp +++ b/sensor_box/library/Drone_sensor.cpp @@ -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);