SDIO timeout in ReadBlocks/WriteBlocks looks bogus
currently I'm implementing a sdio device in mbed-os for STM32F4. This is using the HAL and I had problems with setting the timeout for Read/Write Blocks.
This line looks bad for me:
The function is returning an error if timeout=0 is passed as argument. Reading or writing the blocks has no chance to succeed, if timeout is = it will fail. Usually, a timeout=0 means infinit waiting and the function should look like if ((timeout != 0) && (...)).
Is this right?
