From f5d3b41ae2873647d9dbd2e642217c3989d1b1a5 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Sun, 14 Feb 2016 01:52:46 +0100 Subject: firmware: Fix LED_INIT macro for active high --- firmware/configuration/t841_default/bootloaderconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/configuration/t841_default') diff --git a/firmware/configuration/t841_default/bootloaderconfig.h b/firmware/configuration/t841_default/bootloaderconfig.h index 6dfe795..ed09e1d 100644 --- a/firmware/configuration/t841_default/bootloaderconfig.h +++ b/firmware/configuration/t841_default/bootloaderconfig.h @@ -235,7 +235,7 @@ #define ACTIVE_LOW 2 #if LED_MODE==ACTIVE_HIGH - #define LED_INIT(x) LED_DDR = _BV(LED_PIN); + #define LED_INIT(x) LED_DDR |= _BV(LED_PIN); #define LED_EXIT(x) {LED_DDR &=~_BV(LED_PIN);LED_PORT &=~_BV(LED_PIN);} #define LED_MACRO(x) if ( x & 0x4c ) {LED_PORT&=~_BV(LED_PIN);} else {LED_PORT|=_BV(LED_PIN);} #elif LED_MODE==ACTIVE_LOW -- cgit v1.2.3