Mercurial > public > ostc4
comparison Common/Drivers/STM32F4xx/Source/Templates/gcc/startup_stm32f412vx.s @ 474:4be72d55b09a Improve_Button_Sleep
Added error detection for reading of ADC values in sleep mode:
ADC value were used for pressure calculation without making sure that the I2C operations used for reading the values were called successfully. As result a invalid pressure could be calculated causing the OSTC to wakeup or (worstcase) to enter dive mode. To avoid this the return values are now evaluated and pressure calculation is only done if I2C signaled no error during transmission
author | ideenmodellierer |
---|---|
date | Tue, 12 May 2020 22:42:52 +0200 (2020-05-12) |
parents | c78bcbd5deda |
children |
comparison
equal
deleted
inserted
replaced
473:edfc1a464b42 | 474:4be72d55b09a |
---|