only:better guards
This commit is contained in:
parent
233a35ed7d
commit
21243f3ff7
|
@ -269,7 +269,7 @@ static void CanfdDeInitInterrupt( volatile stc_canfdn_t* pstcCanfd );
|
|||
|
||||
static en_result_t CanfdCheckAndNotifyRxMsg( volatile stc_canfdn_t* pstcCanfd, en_canfd_confirmation_method_t enMethod, uint32_t* pu32Accepted );
|
||||
static stc_canfd_stdid_filter_t* CanfdCalcStdIdFilterAddress( volatile stc_canfdn_t* pstcCanfd, uint8_t u8Index );
|
||||
static stc_canfd_extid_filter_t* CanfdCalcExtIdFilterAddress( volatile stc_canfdn_t* pstcCanfd, uint8_t u8Index );
|
||||
//static stc_canfd_extid_filter_t* CanfdCalcExtIdFilterAddress( volatile stc_canfdn_t* pstcCanfd, uint8_t u8Index );
|
||||
static stc_canfd_rx_buffer_t* CanfdCalcRxBufferAddress( volatile stc_canfdn_t* pstcCanfd, uint8_t u8Index );
|
||||
static en_result_t CanfdGetRxFIFO( volatile stc_canfdn_t* pstcCanfd, en_canfd_rxfifo_number_t enNumber, stc_canfd_rx_buffer_t* pstcRxMsg );
|
||||
static en_result_t CanfdConvRxBuffer( stc_canfd_rx_buffer_t* pstcRxBuffer, stc_canfd_msg_t* pstcRxMsg );
|
||||
|
|
|
@ -121,6 +121,7 @@ static void check(SensorType type) {
|
|||
}
|
||||
}
|
||||
|
||||
#if BOARD_EXT_GPIOCHIPS > 0 && EFI_PROD_CODE
|
||||
static ObdCode getCodeForInjector(int idx, brain_pin_diag_e diag) {
|
||||
if (idx < 0 || idx >= 12) {
|
||||
return ObdCode::None;
|
||||
|
@ -131,6 +132,7 @@ static ObdCode getCodeForInjector(int idx, brain_pin_diag_e diag) {
|
|||
|
||||
return (ObdCode)((int)ObdCode::OBD_Injector_Circuit_1 + idx);
|
||||
}
|
||||
#endif // BOARD_EXT_GPIOCHIPS > 0 && EFI_PROD_CODE
|
||||
|
||||
static ObdCode getCodeForIgnition(int idx, brain_pin_diag_e diag) {
|
||||
if (idx < 0 || idx >= 12) {
|
||||
|
|
Loading…
Reference in New Issue