From e8f0a93177a7be7e98259fef568a7bbaf9548279 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 20 Oct 2018 19:43:33 -0700 Subject: [PATCH] Place bundled library under src folder All recent versions of the Arduino IDE restrict recursive compilation to the src subfolder of the sketch folder. The previous use of the lib folder to store the bundled library caused compilation to fail: C:\Users\per\AppData\Local\Temp\ccJTFh0h.ltrans0.ltrans.o: In function `setup': C:\Users\per\Desktop\G27_Pedals_and_Shifter/G27_Pedals_and_Shifter.ino:359: undefined reference to `G27' C:\Users\per\Desktop\G27_Pedals_and_Shifter/G27_Pedals_and_Shifter.ino:359: undefined reference to `G27' C:\Users\per\Desktop\G27_Pedals_and_Shifter/G27_Pedals_and_Shifter.ino:359: undefined reference to `G27_::begin(bool)' etc. Reference: https://github.com/arduino/arduino-builder/pull/148 --- G27_Pedals_and_Shifter.ino | 2 +- {lib => src}/G27PedalsShifter.cpp | 0 {lib => src}/G27PedalsShifter.h | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename {lib => src}/G27PedalsShifter.cpp (100%) rename {lib => src}/G27PedalsShifter.h (100%) diff --git a/G27_Pedals_and_Shifter.ino b/G27_Pedals_and_Shifter.ino index 7f63042..b42f4d2 100644 --- a/G27_Pedals_and_Shifter.ino +++ b/G27_Pedals_and_Shifter.ino @@ -5,7 +5,7 @@ // http://www.isrtv.com/forums/topic/13189-diy-g25-shifter-interface-with-h-pattern-sequential-and-handbrake-modes/ #include -#include "./lib/G27PedalsShifter.h" +#include "./src/G27PedalsShifter.h" // comment either out to disable #define USE_PEDALS diff --git a/lib/G27PedalsShifter.cpp b/src/G27PedalsShifter.cpp similarity index 100% rename from lib/G27PedalsShifter.cpp rename to src/G27PedalsShifter.cpp diff --git a/lib/G27PedalsShifter.h b/src/G27PedalsShifter.h similarity index 100% rename from lib/G27PedalsShifter.h rename to src/G27PedalsShifter.h