From 51c4aca4432963af11db0d85b9ddb4ff2d50fc60 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Mon, 3 Dec 2018 11:01:24 +0100
Subject: prototest: only include counter when needed

---
 src/app/prototest/main.cc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/app')

diff --git a/src/app/prototest/main.cc b/src/app/prototest/main.cc
index 24e96ac..13f52e7 100644
--- a/src/app/prototest/main.cc
+++ b/src/app/prototest/main.cc
@@ -1,7 +1,10 @@
 #include "arch.h"
 #include "driver/gpio.h"
 #include "driver/stdout.h"
-//#include "driver/counter.h"
+
+#ifdef PROTOTEST_BENCH_CYCLES
+#include "driver/counter.h"
+#endif
 
 #ifdef PROTOTEST_ARDUINOJSON
 #include "lib/ArduinoJson.h"
@@ -71,7 +74,7 @@ int main(void)
 	gpio.setup();
 	kout.setup();
 
-	gpio.led_on(0);
+	//gpio.led_on(0);
 	kout << "Hello, World!" << endl;
 
 #if defined(PROTOTEST_BENCH_CYCLES) and (defined(MULTIPASS_ARCH_arduino_nano) or defined(MULTIPASS_ARCH_msp430fr5969lp))
-- 
cgit v1.2.3