From e45a391776439891c80ce416e3e21dd053252e23 Mon Sep 17 00:00:00 2001 From: tyeth Date: Tue, 15 Oct 2024 15:24:18 +0100 Subject: [PATCH] Clang-format analogio.h + cpp --- src/components/analogIO/Wippersnapper_AnalogIO.cpp | 2 +- src/components/analogIO/Wippersnapper_AnalogIO.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/analogIO/Wippersnapper_AnalogIO.cpp b/src/components/analogIO/Wippersnapper_AnalogIO.cpp index 7c4fd4a2..ddcfb638 100644 --- a/src/components/analogIO/Wippersnapper_AnalogIO.cpp +++ b/src/components/analogIO/Wippersnapper_AnalogIO.cpp @@ -90,7 +90,7 @@ void Wippersnapper_AnalogIO::setADCResolution(int resolution) { scaleAnalogRead = false; // handled in bsp (analogReadResolution) analogReadResolution(resolution); // 16 bit values (shifted from 12 or 13bit) #if defined(ESP32S3) - _nativeResolution = 13; // S3 ADC is 13-bit, others are 12-bit + _nativeResolution = 13; // S3 ADC is 13-bit, others are 12-bit #else _nativeResolution = 12; #endif diff --git a/src/components/analogIO/Wippersnapper_AnalogIO.h b/src/components/analogIO/Wippersnapper_AnalogIO.h index b14094fa..d6a028e4 100644 --- a/src/components/analogIO/Wippersnapper_AnalogIO.h +++ b/src/components/analogIO/Wippersnapper_AnalogIO.h @@ -63,7 +63,8 @@ class Wippersnapper_AnalogIO { void setADCResolution(int resolution); int getADCresolution(); int getNativeResolution(); - bool timerExpired(long currentTime, analogInputPin pin, long periodOffset = 0); + bool timerExpired(long currentTime, analogInputPin pin, + long periodOffset = 0); void update(); bool encodePinEvent(