From dd644cee7bd0584d815fe2c6042e0557a6dc42ec Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 14 Nov 2019 17:10:08 +0100 Subject: ptalog: decrease delay border around barcode output --- include/object/ptalog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/object') diff --git a/include/object/ptalog.h b/include/object/ptalog.h index c3ffdf6..c5caa98 100644 --- a/include/object/ptalog.h +++ b/include/object/ptalog.h @@ -97,7 +97,7 @@ class PTALog { #ifdef PTALOG_GPIO_BAR void startTransition(char const *code, uint8_t code_length) { - arch.sleep_ms(10); + arch.sleep_ms(20); for (uint8_t byte = 0; byte < code_length; byte++) { for (uint16_t mask = 0x01; mask <= 0x80; mask <<= 1) { gpio.write(sync_pin, code[byte] & mask ? 1 : 0); @@ -105,7 +105,7 @@ class PTALog { } } gpio.write(sync_pin, 0); - arch.sleep_ms(10); + arch.sleep_ms(20); } #else inline void startTransition() -- cgit v1.2.3