ESP32: replaced the mod base circular increment by uLipe · Pull Request #493 · simplefoc/Arduino-FOC

@uLipe

of the ADC buffer with a branch based option to avoid
the compiler to use a MOD instruction that consumes several cycles.

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>

@uLipe

To happen after the ADC reading to avoid shifting the
order of the samples.

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>