diff options
Diffstat (limited to 'src/testapp1/main.c')
-rw-r--r-- | src/testapp1/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testapp1/main.c b/src/testapp1/main.c index c5d3102..4afbbca 100644 --- a/src/testapp1/main.c +++ b/src/testapp1/main.c @@ -11,8 +11,8 @@ #define PORTB_SYNCn (1 << 2) #define PORTB_LED (1 << 4) -/* Specify ID here */ -static const uint8_t renard_id = 0; +/* Specify ID here, zero-indexed (E=0, I=1, ...) */ +static const uint8_t renard_id = 4; static const uint8_t num_renards_cycle = 4; // colon (:) represents ERROR @@ -110,7 +110,7 @@ int main(void) morse(morse_string); delay_ms(6*DIT_DURATION); } - else if (minute >= 1 /* TODO */ ) { // see README.md + else if (minute >= 25) { // see README.md /* renard id 0: start at (k * num_renards_cycle) * 60, end at (k * num_renards_cycle) * 60 + 55 */ const int in_timeslot = (minute % (uint32_t)num_renards_cycle) == renard_id; @@ -124,7 +124,7 @@ int main(void) } else { /* renard id 0: start every 30s, with an additional 2s offset depending on renard_id */ - const uint32_t second_offset = second % 10uL; // TODO + const uint32_t second_offset = second % 30uL; if (second_offset == 2 * renard_id) { morse_char(unique_letter); |