#elif defined(_MBED) - or ir could reference actual boards PORTENTA_H7 etc
delay(ctx->response_timeout.tv_sec * 1000);
delayMicroseconds(ctx->response_timeout.tv_usec);
#else
I would like if possible to add an #ifdef _MBED (as used by Portenta and others)
This way delays are task switch implemented - not wasting CPU time, The sub ms delay will be done in the usal Arduino way, as MBed does not allow sub ms sleep intervals (ticker res 1mS).
The code currently present is as follows
I would like if possible to add an
#ifdef _MBED
(as used by Portenta and others)In there the delay can be changed to:
This way delays are task switch implemented - not wasting CPU time, The sub ms delay will be done in the usal Arduino way, as MBed does not allow sub ms sleep intervals (ticker res 1mS).