Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid if statement in radio.c line 29 #28

Open
xou822 opened this issue Mar 6, 2019 · 0 comments
Open

invalid if statement in radio.c line 29 #28

xou822 opened this issue Mar 6, 2019 · 0 comments

Comments

@xou822
Copy link

xou822 commented Mar 6, 2019

Can you help to check if this is an invalid if statement and make the correction please?

/*============================================================================
Name : initRadio

Purpose : initializes the Radio, with the SPI communication first and then
the NRF24L01+ chip
Input :
Output : none
Return :
Notes :
============================================================================*/
bool initRadio(uint8_t id)
{
uint8_t initOK;

HAL_RCC_MCOConfig(RCC_MCO, RCC_MCOSOURCE_HSE, RCC_MCO_NODIV); //output HSE clock on MCO

if (SPIInit())
{
    if (initOK = initNRF24L01P())
                    ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant