mirror of https://github.com/rusefi/bldc.git
Fixed typo
This commit is contained in:
parent
93e9fa3890
commit
9e45fd9463
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue