aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lcd_hd44780.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lcd_hd44780.c b/src/lcd_hd44780.c
index 26fa63cb..9137cc71 100644
--- a/src/lcd_hd44780.c
+++ b/src/lcd_hd44780.c
@@ -100,6 +100,11 @@ command_config_hd44780(uint32_t *args)
h->d6 = gpio_out_setup(args[5], 0);
h->d7 = gpio_out_setup(args[6], 0);
+ if (!CONFIG_HAVE_STRICT_TIMING) {
+ h->cmd_wait_ticks = args[7];
+ return;
+ }
+
// Calibrate cmd_wait_ticks
irq_disable();
uint32_t start = timer_read_time();