diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-15 13:42:31 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-15 13:42:31 +0100 |
commit | 87e60ac8c3e646bbaee54d0699a8d46278ab5711 (patch) | |
tree | 7de09caed43af76614cd74fa8d595eda6c823e07 /include/object | |
parent | dd644cee7bd0584d815fe2c6042e0557a6dc42ec (diff) |
ptalog: note that the current code may violate the Code128 quiet zone
Diffstat (limited to 'include/object')
-rw-r--r-- | include/object/ptalog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/object/ptalog.h b/include/object/ptalog.h index c5caa98..bdd0a33 100644 --- a/include/object/ptalog.h +++ b/include/object/ptalog.h @@ -97,6 +97,8 @@ class PTALog { #ifdef PTALOG_GPIO_BAR void startTransition(char const *code, uint8_t code_length) { + // TODO increase sleep duration: quiet zone must be at least 10x long + // (100ms for 10ms per bar, oder 50ms for 5ms per bar) arch.sleep_ms(20); for (uint8_t byte = 0; byte < code_length; byte++) { for (uint16_t mask = 0x01; mask <= 0x80; mask <<= 1) { @@ -105,6 +107,7 @@ class PTALog { } } gpio.write(sync_pin, 0); + // TODO increase sleep duration (see above) arch.sleep_ms(20); } #else |