From 3d3ce8f8a1e15c5555d7fd117d91b65cc08edb0a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 11 Dec 2020 09:21:03 +0100 Subject: ptalog.h: Fix compilation error for !PTALOG_GPIO --- include/object/ptalog.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/object/ptalog.h') diff --git a/include/object/ptalog.h b/include/object/ptalog.h index 9d070ab..e4cff37 100644 --- a/include/object/ptalog.h +++ b/include/object/ptalog.h @@ -152,7 +152,7 @@ class PTALog { log[log_index - 1].prev_state_overflow = counter.overflow; counter.start(); #endif -#ifndef PTALOG_GPIO_BEFORE +#if defined(PTALOG_GPIO) && !defined(PTALOG_GPIO_BEFORE) gpio.write(sync_pin, 1); #endif } @@ -167,11 +167,9 @@ class PTALog { inline void stopTransition() { -#ifdef PTALOG_GPIO -#if !defined(PTALOG_GPIO_BEFORE) && !defined(PTALOG_GPIO_BAR) +#if defined(PTALOG_GPIO) && !defined(PTALOG_GPIO_BEFORE) && !defined(PTALOG_GPIO_BAR) gpio.write(sync_pin, 0); #endif -#endif #ifdef PTALOG_TIMING counter.stop(); log[log_index - 1].timer = counter.value; -- cgit v1.2.3