Skip to content

Commit

Permalink
Fixed indents
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphuebner committed Jan 10, 2019
1 parent 3963764 commit 46bcb96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/project/inc_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void Encoder::SetImpulsesPerTurn(uint16_t imp)
anglePerPulse = TWO_PI / imp;

if (encMode == SINGLE)
InitTimerSingleChannelMode();
InitTimerSingleChannelMode();

if (encMode == AB || encMode == ABZ)
InitTimerABZMode();
Expand Down Expand Up @@ -294,17 +294,17 @@ void Encoder::InitTimerSingleChannelMode()

for (uint8_t i = 0; i < NUM_ENCODER_CONFIGS; i++, currentConfig++)
{
if (pulsesPerTurn <= currentConfig->maxPpr)
if (pulsesPerTurn <= currentConfig->maxPpr)
{
if (selectedConfig != currentConfig)
{
debugf("Reconfiguring encoder timer for CFG%d", (i+1));
}
selectedConfig = currentConfig;
pulseMeasFrq = selectedConfig->pulseMeasFrequency;
break;
}
}
pulseMeasFrq = selectedConfig->pulseMeasFrequency;
break;
}
}

rcc_periph_reset_pulse(REV_CNT_TIMRST);

Expand Down

0 comments on commit 46bcb96

Please sign in to comment.