Open scaprile opened 4 years ago
implementation. you should be able to set rx_data to NULL if you don't want the data.
if you can send a PR that fixes it, please go ahead.
I went ahead and checked the EFM32 implementation as well. It has the same issue. Here The ESP32 implementation, here, pulls 32-bit words out of some register. I don't know how safe it is to skip those readings, and directly avoid the function call here, I guess I should just check for NULL pointer and skip writing at the destination, but do the chip reads; in both cases ? I'll probably address this after I finish my current (related) endeavor. The ESP32 part I can check for operation; the EFM32 part I can do it but I can't check it.
yes, read the bytes but ignore them.
see PR #3 (BTW, "EFM32" --> "STM32" in previous comment...)
In mgos_spi.h, for a full-duplex transaction I read: