Change return type of function

This commit is contained in:
Daniel Öster 2025-03-06 19:54:13 +02:00
parent 8d21930101
commit 476c54711f
2 changed files with 3 additions and 3 deletions

View file

@ -264,7 +264,7 @@ int CAN_init() {
return 0;
}
int CAN_write_frame(const CAN_frame_t *p_frame) {
bool CAN_write_frame(const CAN_frame_t *p_frame) {
if (sem_tx_complete == NULL) {
return 0;
}

View file

@ -104,9 +104,9 @@ int CAN_init(void);
* \brief Send a can frame
*
* \param p_frame Pointer to the frame to be send, see #CAN_frame_t
* \return 0 Frame has been written to the module
* \return 1 Frame has been written to the module
*/
int CAN_write_frame(const CAN_frame_t *p_frame);
bool CAN_write_frame(const CAN_frame_t *p_frame);
/**
* \brief Stops the CAN Module