diff Discovery/Src/tInfo.c @ 243:b7b481df4f22 div-fixes-5

debug: add SPI error counter to compass calibration This is a debug only extension. It is possible to force SPI errors and a failing compass calibration by rotating fast during the calibration cycle. This extra debug output (only activated with the proper #define statements) is a first aid in helping to find the underlying issue. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author Jan Mulder <jlmulder@xs4all.nl>
date Mon, 08 Apr 2019 12:35:59 +0200
parents 2bb1db22b5f5
children 01f40cb1057e
line wrap: on
line diff
--- a/Discovery/Src/tInfo.c	Mon Apr 08 12:02:07 2019 +0200
+++ b/Discovery/Src/tInfo.c	Mon Apr 08 12:35:59 2019 +0200
@@ -210,7 +210,7 @@
     if(inDebugMode())
         tDebug_refresh();
     else
-        refreshInfo_Compass();
+        refreshInfo_Compass(tIscreen);
 
     if(inDebugMode() || (get_globalState() == StICOMPASS)) /* could be timeout and exitInfo */
         GFX_SetFramesTopBottom(tIscreen.FBStartAdress, 0,480);