From ca96106f7d6636a33f2c484687ca3efeab54195c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E5=8B=87?= <69684365+YONG-UNO@users.noreply.github.com> Date: Sat, 11 Apr 2026 05:16:32 +0800 Subject: [PATCH] style(PID): remove unnecessary semicolons and ensure proper formatting (#27049) --- src/lib/pid/PID.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/pid/PID.hpp b/src/lib/pid/PID.hpp index 615fd60b22..526abccf4c 100644 --- a/src/lib/pid/PID.hpp +++ b/src/lib/pid/PID.hpp @@ -46,8 +46,8 @@ public: void setSetpoint(const float setpoint) { _setpoint = setpoint; } float update(const float feedback, const float dt, const bool update_integral = true); float getIntegral() { return _integral; } - void resetIntegral() { _integral = 0.f; }; - void resetDerivative() { _last_feedback = NAN; }; + void resetIntegral() { _integral = 0.f; } + void resetDerivative() { _last_feedback = NAN; } private: void updateIntegral(float error, const float dt); float updateDerivative(float feedback, const float dt);