diff options
| author | Keith Packard <keithp@keithp.com> | 2017-04-24 16:40:46 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2017-04-24 16:41:30 -0700 | 
| commit | 8e5b4359050701513a807131564ae54f2e6b919b (patch) | |
| tree | 13d779e9f448e4c8ab35c8ecb097a79fc3175443 | |
| parent | c57a5c018e4bd0a0033c8759132a648977bf45f7 (diff) | |
altos/ao_pad.c: Use #if HAS_LOG instead of #ifdef HAS_LOG
TeleFire v0.1 defines HAS_LOG to 0.
Signed-off-by: Keith Packard <keithp@keithp.com>
| -rw-r--r-- | src/drivers/ao_pad.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/drivers/ao_pad.c b/src/drivers/ao_pad.c index c18cdd8d..16b4ae60 100644 --- a/src/drivers/ao_pad.c +++ b/src/drivers/ao_pad.c @@ -377,7 +377,7 @@ ao_pad(void)  				PRINTD ("not armed\n");  				break;  			} -#ifdef HAS_LOG +#if HAS_LOG  			if (!ao_log_running) ao_log_start();  #endif  			if ((uint16_t) (ao_time() - ao_pad_arm_time) > AO_SEC_TO_TICKS(20)) { @@ -391,7 +391,7 @@ ao_pad(void)  			ao_wakeup(&ao_pad_ignite);  			break;  		case AO_PAD_ENDSTATIC: -#ifdef HAS_LOG +#if HAS_LOG  			ao_log_stop();  #endif  			break; | 
