diff options
Diffstat (limited to 'src/testapp1/main.c')
-rw-r--r-- | src/testapp1/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testapp1/main.c b/src/testapp1/main.c index 117551a..fc165b4 100644 --- a/src/testapp1/main.c +++ b/src/testapp1/main.c @@ -123,6 +123,10 @@ int main(void) const int permanent = (unique_letter == ':'); + // In order to have all foxes transmitting all the time + // before sync + int sync_pending = 1; + delay_ms(12*DIT_DURATION); morse("HB9HI"); delay_ms(12*DIT_DURATION); @@ -130,9 +134,10 @@ int main(void) while (1) { if ((PINB & PORTB_SYNCn) == 0) { reset_time = 1; + sync_pending = 0; } - if (permanent) { + if (permanent || sync_pending) { morse(morse_string); delay_ms(6*DIT_DURATION); } |