2019-09-04 09:07 AM
I can read the on board temperature sensor when I use the code below when it is run in the file platform_STM32Cube_IoT01L475VG.c... but if I move the same code to a function from another file it always returns 0... can't figure out why... any ideas?
float TEMPERATURE_Value;
float HUMIDITY_Value;
float PRESSURE_Value;
TEMPERATURE_Value = BSP_TSENSOR_ReadTemp();
HUMIDITY_Value = BSP_HSENSOR_ReadHumidity();
PRESSURE_Value = BSP_PSENSOR_ReadPressure();