summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/object/ptalog.h3
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