Commit 87e60ac8 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

ptalog: note that the current code may violate the Code128 quiet zone

parent dd644cee
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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