From 6469d410e4adde20a3407e567874050602217ddf Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Wed, 13 Apr 2022 17:54:02 +1000 Subject: [PATCH] Update main.cpp --- source/Core/Src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/Core/Src/main.cpp b/source/Core/Src/main.cpp index a7317d61..7a65bc07 100644 --- a/source/Core/Src/main.cpp +++ b/source/Core/Src/main.cpp @@ -7,6 +7,7 @@ #include "main.hpp" #include "BSP.h" #include "Settings.h" +#include "bflb_platform.h" #include "cmsis_os.h" #include "power.hpp" AccelType DetectedAccelerometerVersion = AccelType::Scanning; @@ -37,10 +38,14 @@ osStaticThreadDef_t POWTaskControlBlock; // Main sets up the hardware then hands over to the FreeRTOS kernel int main(void) { preRToSInit(); - setTipX10Watts(0); // force tip off + MSG((char *)"wdg\r\n"); resetWatchdog(); // Testing for which accelerometer is mounted settingsWereReset = loadSettings(); // load the settings from flash + MSG((char *)"tip\r\n"); + setTipX10Watts(0); // force tip off + + MSG((char *)"main\r\n"); resetWatchdog(); /* Create the thread(s) */