From 4cb3091428c037e04a695ba5f02ea59c1263a926 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20Foucher?= <cfoucher@laas.fr>
Date: Mon, 9 May 2022 13:53:34 +0200
Subject: [PATCH] Move source files to root folder in order to remain
 compatible with Arduino.

---
 src/Debouncer.h => Debouncer.h                               | 0
 src/common.h => common.h                                     | 0
 platformio.ini                                               | 3 +++
 src/pousseseringue-arduino.cpp => pousseseringue-arduino.cpp | 1 -
 src/web.cpp => web.cpp                                       | 0
 5 files changed, 3 insertions(+), 1 deletion(-)
 rename src/Debouncer.h => Debouncer.h (100%)
 rename src/common.h => common.h (100%)
 rename src/pousseseringue-arduino.cpp => pousseseringue-arduino.cpp (99%)
 rename src/web.cpp => web.cpp (100%)

diff --git a/src/Debouncer.h b/Debouncer.h
similarity index 100%
rename from src/Debouncer.h
rename to Debouncer.h
diff --git a/src/common.h b/common.h
similarity index 100%
rename from src/common.h
rename to common.h
diff --git a/platformio.ini b/platformio.ini
index 8514bdb..19ac677 100644
--- a/platformio.ini
+++ b/platformio.ini
@@ -8,6 +8,9 @@
 ; Please visit documentation for the other options and examples
 ; https://docs.platformio.org/page/projectconf.html
 
+[platformio]
+src_dir = .
+
 [env:featheresp32]
 platform = espressif8266
 board = huzzah
diff --git a/src/pousseseringue-arduino.cpp b/pousseseringue-arduino.cpp
similarity index 99%
rename from src/pousseseringue-arduino.cpp
rename to pousseseringue-arduino.cpp
index 2773e76..f50c850 100644
--- a/src/pousseseringue-arduino.cpp
+++ b/pousseseringue-arduino.cpp
@@ -3,7 +3,6 @@
 // Feather LCD
 // Feather motor controler
 
-#pragma once // necessary for arduino IDE environment ino source file
 
 #if 0
 #define STASSID         "laas-capture"
diff --git a/src/web.cpp b/web.cpp
similarity index 100%
rename from src/web.cpp
rename to web.cpp
-- 
GitLab