Skip to content

Commit

Permalink
Merge pull request #134 from r0mko/fix_motor_type
Browse files Browse the repository at this point in the history
Fix motor type selection
  • Loading branch information
casainho authored Apr 4, 2020
2 parents 6664e21 + b8d9536 commit 8fbf63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/ebike_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ static void communications_process_packages(uint8_t ui8_frame_type)
m_config_vars.ui8_torque_sensor_calibration_feature_enabled = (ui8_rx_buffer[9] & 8) >> 3;
m_config_vars.ui8_torque_sensor_calibration_pedal_ground = (ui8_rx_buffer[9] & 16) >> 4;
m_config_vars.ui8_motor_assistance_startup_without_pedal_rotation = (ui8_rx_buffer[9] & 32) >> 5;
m_config_vars.ui8_motor_type = (ui8_rx_buffer[9] & 64) >> 6;
m_config_vars.ui8_motor_type = (ui8_rx_buffer[9] >> 6) & 0x3;

// motor max current
ebike_app_set_motor_max_current(ui8_rx_buffer[10]);
Expand Down

0 comments on commit 8fbf63c

Please sign in to comment.