Fixed typo

This commit is contained in:
Benjamin Vedder 2023-03-29 12:45:51 +02:00
parent 93e9fa3890
commit 9e45fd9463
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ void encoder_set_deg(float deg) {
if (m_encoder_type_now == ENCODER_TYPE_ABI) {
encoder_cfg_ABI.timer->CNT = (uint32_t)(deg / 360.0 * (float)encoder_cfg_ABI.counts);
encoder_cfg_ABI.state.index_found = true;
} if (m_encoder_type_now == ENCODER_TYPE_CUSTOM) {
} else if (m_encoder_type_now == ENCODER_TYPE_CUSTOM) {
m_enc_custom_pos = deg;
}
}