jlab-sensing / soil-power-sensor-firmware

Firmware for STM32 and ESP32 microcontrollers on the Soil Power Sensor board
MIT License
0 stars 3 forks source link

Fix ads unit tests #84

Closed jmadden173 closed 1 month ago

jmadden173 commented 1 month ago

Name/Affiliation/Title John, maintainer

Purpose of the PR Fixes test_ads hanging

Development Environment Linux spruce 6.8.2-arch2-1 #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000 x86_64 GNU/Linux PlatformIO Core, version 6.1.7 Used ST-Link V3 MINIE

Test Procedure Run the following and check that the tests passes

pio test -e tests -f test_ads

Additional Context Added timer initialization to test_ads.c since the library relies on HAL_Delay. Also updated the data ready pin as that was incorrect.

Closes #83