Skip to content

Commit

Permalink
fixed tests and HAL_GPIO_EXTI_Callback
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Jan 25, 2024
1 parent 2b2b89a commit 7a8dbfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions gripper/firmware/motor_hardware_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
(*diag0_callback)();
}
}
}
}

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
if (GPIO_Pin == ESTOP_IN_PIN) {
} else if (GPIO_Pin == ESTOP_IN_PIN) {
#if PCBA_PRIMARY_REVISION != 'b' && PCBA_PRIMARY_REVISION != 'a'
HAL_GPIO_WritePin(EBRAKE_PORT, EBRAKE_PIN, GPIO_PIN_RESET);
#endif
Expand Down
4 changes: 4 additions & 0 deletions include/motor-control/tests/mock_motor_driver_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ struct MockMotorDriverClient {
messages.push_back(m);
}

void send_motor_driver_queue_isr(const tmc::tasks::TaskMessage& m) {
messages.push_back(m);
}

std::vector<tmc::tasks::TaskMessage> messages{};
};

Expand Down

0 comments on commit 7a8dbfe

Please sign in to comment.