added more spi test code, preprocessor defines

and various bugfixes
This commit is contained in:
2021-04-02 15:14:08 +02:00
committed by IRS Cleanroom Laptop
parent fca78108a2
commit 08351bcda2
9 changed files with 136 additions and 57 deletions

View File

@ -33,8 +33,8 @@ void MGMHandlerLIS3MDL::doStartUp() {
/* Will be set by checking device ID (WHO AM I register) */
if(commandExecuted) {
commandExecuted = false;
internalState = InternalState::STATE_SETUP;
}
internalState = InternalState::STATE_SETUP;
break;
}
case(InternalState::STATE_SETUP): {
@ -463,7 +463,7 @@ void MGMHandlerLIS3MDL::doTransition(Mode_t modeFrom, Submode_t subModeFrom) {
}
uint32_t MGMHandlerLIS3MDL::getTransitionDelayMs(Mode_t from, Mode_t to) {
return 10000;
return 20000;
}
void MGMHandlerLIS3MDL::modeChanged(void) {