From 505108c0c0bd99419b954250a1f674c92c7db8ef Mon Sep 17 00:00:00 2001 From: cjkas Date: Tue, 13 Oct 2026 20:47:14 +0200 Subject: [PATCH] refactor: rename what is left of Somfy.cpp to SomfyShade.cpp Only SomfyShade's behaviour is left: receiving frames, commands, moving to targets and the favorite. Drop the includes and externs it no longer uses. Co-Authored-By: Claude Opus 5.5 --- src/RollingCode.h | 2 +- src/{Somfy.cpp => SomfyShade.cpp} | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) rename src/{Somfy.cpp => SomfyShade.cpp} (99%) diff --git a/src/RollingCode.h b/src/RollingCode.h index 67fba39..7eb58fe 100644 --- a/src/RollingCode.h +++ b/src/RollingCode.h @@ -2,7 +2,7 @@ #define ROLLING_CODE_H #include -// Working out a remote's next rolling code (src/Somfy.cpp). Kept free of NVS +// Working out a remote's next rolling code (src/SomfyRemote.cpp). Kept free of NVS // so it can be unit tested on the PC (pio test -e native). // The code the next frame uses. It is only read here and consumed once the diff --git a/src/Somfy.cpp b/src/SomfyShade.cpp similarity index 99% rename from src/Somfy.cpp rename to src/SomfyShade.cpp index 4f3ba40..c49c837 100644 --- a/src/Somfy.cpp +++ b/src/SomfyShade.cpp @@ -1,32 +1,11 @@ #include -#include -#include -#include -#include -#include -#include -#include -#include "driver/gpio.h" #include "esp_log.h" -#include "Utils.h" -#include "ConfigSettings.h" #include "Somfy.h" #include "ShadeMotion.h" -#include "RollingCode.h" -#include "Sockets.h" -#include "MQTT.h" -#include "ConfigFile.h" -#include "GitOTA.h" static const char *TAG = "Somfy"; extern SomfyShadeController somfy; -extern SocketEmitter sockEmit; -extern ConfigSettings settings; -extern MQTTClass mqtt; -extern GitUpdater git; - - #define SETMY_REPEATS 35 #define TILT_REPEATS 15