Mercurial > public > ostc4
comparison 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 |
comparison
equal
deleted
inserted
replaced
242:b23de15e2861 | 243:b7b481df4f22 |
---|---|
208 infoColor = CLUT_InfoCompass; | 208 infoColor = CLUT_InfoCompass; |
209 | 209 |
210 if(inDebugMode()) | 210 if(inDebugMode()) |
211 tDebug_refresh(); | 211 tDebug_refresh(); |
212 else | 212 else |
213 refreshInfo_Compass(); | 213 refreshInfo_Compass(tIscreen); |
214 | 214 |
215 if(inDebugMode() || (get_globalState() == StICOMPASS)) /* could be timeout and exitInfo */ | 215 if(inDebugMode() || (get_globalState() == StICOMPASS)) /* could be timeout and exitInfo */ |
216 GFX_SetFramesTopBottom(tIscreen.FBStartAdress, 0,480); | 216 GFX_SetFramesTopBottom(tIscreen.FBStartAdress, 0,480); |
217 | 217 |
218 if(oldIscreen) | 218 if(oldIscreen) |