diff options
| author | Selene ToyKeeper | 2018-10-10 21:29:22 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-10-10 21:29:22 -0600 |
| commit | 85e0f22130db548c25e2c7677b02087211571306 (patch) | |
| tree | 00d56b45fa181418fc2ce72bfa93f766008bdfe0 /spaghetti-monster/fsm-misc.c | |
| parent | Fixed location of an #endif (diff) | |
| parent | applied thermal target bugfix from Anduril (diff) | |
| download | anduril-85e0f22130db548c25e2c7677b02087211571306.tar.gz anduril-85e0f22130db548c25e2c7677b02087211571306.tar.bz2 anduril-85e0f22130db548c25e2c7677b02087211571306.zip | |
merged updates from fsm branch
Diffstat (limited to 'spaghetti-monster/fsm-misc.c')
| -rw-r--r-- | spaghetti-monster/fsm-misc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-misc.c b/spaghetti-monster/fsm-misc.c index e60909e..e61fe00 100644 --- a/spaghetti-monster/fsm-misc.c +++ b/spaghetti-monster/fsm-misc.c @@ -113,14 +113,26 @@ void indicator_led(uint8_t lvl) { case 0: // indicator off DDRB &= 0xff ^ (1 << AUXLED_PIN); PORTB &= 0xff ^ (1 << AUXLED_PIN); + #ifdef AUXLED2_PIN // second LED mirrors the first + DDRB &= 0xff ^ (1 << AUXLED2_PIN); + PORTB &= 0xff ^ (1 << AUXLED2_PIN); + #endif break; case 1: // indicator low DDRB &= 0xff ^ (1 << AUXLED_PIN); PORTB |= (1 << AUXLED_PIN); + #ifdef AUXLED2_PIN // second LED mirrors the first + DDRB &= 0xff ^ (1 << AUXLED2_PIN); + PORTB |= (1 << AUXLED2_PIN); + #endif break; default: // indicator high DDRB |= (1 << AUXLED_PIN); PORTB |= (1 << AUXLED_PIN); + #ifdef AUXLED2_PIN // second LED mirrors the first + DDRB |= (1 << AUXLED2_PIN); + PORTB |= (1 << AUXLED2_PIN); + #endif break; } } |
