From bde6026ac615217af79bafa2988db81402d05b1f Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Tue, 20 Aug 2024 12:31:10 -0400 Subject: [PATCH] format --- .../include/flex-stacker/flex-stacker/motor_task.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/stm32-modules/include/flex-stacker/flex-stacker/motor_task.hpp b/stm32-modules/include/flex-stacker/flex-stacker/motor_task.hpp index 4f2cd95b..67cdaedb 100644 --- a/stm32-modules/include/flex-stacker/flex-stacker/motor_task.hpp +++ b/stm32-modules/include/flex-stacker/flex-stacker/motor_task.hpp @@ -96,10 +96,8 @@ class MotorTask { if (!engage.has_value()) { return true; } - if (engage.value()) { - return policy.enable_motor(id); - } - return policy.disable_motor(id); + return engage.value() ? policy.enable_motor(id) + : policy.disable_motor(id); } template