AnsweredAssumed Answered

How to compare a result of a function ?

Question asked by H.Rick on Oct 11, 2015
Latest reply on Oct 11, 2015 by Clive One
Guys,

How can compare the result of the furnction output ?

I have on main.c :
Code:
result = VS1053_Init(); 
          if (result == 0) 
          {      
               HAL_GPIO_WritePin(GPIOE, GPIO_PIN_6 , 1 ); 
               HAL_Delay(100); 
               HAL_GPIO_WritePin(GPIOE, GPIO_PIN_6 , 0 ); 
          }
and :

vs.c :
Code:
unsigned char VS1053B_Init() 
{ 
. 
. 
. 
return 0; 
}
Thanks

Outcomes