Open ryan4volts opened 3 years ago
@ryan4volts I don't see any reason why queue_size
shouldn't automatically be changed to 1 if it's passed as 0, kind of like spi_bus_config_t
's max_transfer_sz
, especially considering it's only useful for interrupt transactions.
Either if it forces the user to make a code change, or it makes the change itself is a good solution.
After a chunk of time racking my head around what occurred when doing some code optimisations, I realised this parameter isn't checked in the
spi_bus_add_device
function. Can we add it in with ESP_ERR_INVALID_ARG something like below