mirror of https://github.com/rusefi/bldc.git
typo fix for custom encoder read callback
This commit is contained in:
parent
0d0f30650a
commit
2bb7d4328d
|
@ -370,7 +370,7 @@ float encoder_read_deg(void) {
|
||||||
return AS5x47U_LAST_ANGLE(&encoder_cfg_as5x47u);
|
return AS5x47U_LAST_ANGLE(&encoder_cfg_as5x47u);
|
||||||
} else if (m_encoder_type_now == ENCODER_TYPE_BISSC) {
|
} else if (m_encoder_type_now == ENCODER_TYPE_BISSC) {
|
||||||
return BISSC_LAST_ANGLE(&encoder_cfg_bissc);
|
return BISSC_LAST_ANGLE(&encoder_cfg_bissc);
|
||||||
} else if (m_encoder_type_now == ENCODER_TYPE_BISSC) {
|
} else if (m_encoder_type_now == ENCODER_TYPE_CUSTOM) {
|
||||||
if (m_enc_custom_read_deg) {
|
if (m_enc_custom_read_deg) {
|
||||||
return m_enc_custom_read_deg();
|
return m_enc_custom_read_deg();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue