Skip to content

Commit

Permalink
Merge after previous pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
casainho committed Apr 6, 2020
2 parents 9feeef2 + 8fbf63c commit 264e040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ebike_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ static void communications_process_packages(uint8_t ui8_frame_type)
m_config_vars.ui8_torque_sensor_calibration_feature_enabled = (ui8_rx_buffer[8] & 8) >> 3;
m_config_vars.ui8_torque_sensor_calibration_pedal_ground = (ui8_rx_buffer[8] & 16) >> 4;
m_config_vars.ui8_motor_assistance_startup_without_pedal_rotation = (ui8_rx_buffer[8] & 32) >> 5;
m_config_vars.ui8_motor_type = (ui8_rx_buffer[8] & 64) >> 6;
m_config_vars.ui8_motor_type = (ui8_rx_buffer[8] >> 6) & 0x3;

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

0 comments on commit 264e040

Please sign in to comment.