SPI SW speed up

This commit is contained in:
servadmin 2021-11-11 15:01:05 -05:00
parent 22bb2654ad
commit 900de087e7
1 changed files with 4 additions and 1 deletions

View File

@ -248,7 +248,10 @@ uint8_t u8x8_arm_linux_gpio_and_delay(u8x8_t *u8x8, uint8_t msg,
(void) arg_ptr; /* suppress unused parameter warning */
switch (msg) {
case U8X8_MSG_DELAY_NANO: // delay arg_int * 1 nano second
sleep_ns(arg_int);
user_data = u8x8_GetUserPtr(u8x8);
if (user_data->delay != 0) {
sleep_ns(user_data->delay);
}
break;
case U8X8_MSG_DELAY_100NANO: // delay arg_int * 100 nano seconds