From 85f0712d314115477dcde87ae645261f5fed9470 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Wed, 5 Jan 2022 01:23:36 +0100 Subject: [PATCH] balance if/endif --- myHal.cpp_example.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/myHal.cpp_example.txt b/myHal.cpp_example.txt index 13a6b4b..32aa12e 100644 --- a/myHal.cpp_example.txt +++ b/myHal.cpp_example.txt @@ -11,6 +11,10 @@ // To prevent this, temporarily rename the file to myHal.txt or similar. // +// The #if directive prevent compile errors for Uno and Nano by excluding the +// HAL directives from the build. +#if !defined(IO_NO_HAL) + // Include devices you need. #include "IODevice.h" #include "IO_HCSR04.h" // Ultrasonic range sensor