Special fix for STM32F103C8 uCs

Was not compiling because of misplaced and/or insufficient preprocessor directives
This commit is contained in:
ConnerMcLaughlin 2017-12-31 22:27:56 -06:00
parent dc0e1c7b88
commit 0622666434
1 changed files with 5 additions and 1 deletions

View File

@ -200,7 +200,11 @@ void triggerSec_missingTooth()
{ {
curTime2 = micros(); curTime2 = micros();
curGap2 = curTime2 - toothLastSecToothTime; curGap2 = curTime2 - toothLastSecToothTime;
if( (toothLastSecToothTime == 0) || (toothLastMinusOneSecToothTime == 0) ) { curGap2 = 0; } if( (toothLastSecToothTime == 0)
#ifndef SMALL_FLASH_MODE
|| (toothLastMinusOneSecToothTime == 0 )
#endif
) { curGap2 = 0; }
if ( curGap2 >= triggerSecFilterTime ) if ( curGap2 >= triggerSecFilterTime )
{ {
#ifndef SMALL_FLASH_MODE #ifndef SMALL_FLASH_MODE