From 551b71f298da1ea10b54c3923e78e2e26c417b61 Mon Sep 17 00:00:00 2001 From: Erki Date: Sun, 4 Jul 2021 22:02:46 +0300 Subject: [PATCH] Peripherals: make the dualdriver unset the sleep pin in the ctor --- Peripherals/Inc/peripherals_motors.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Peripherals/Inc/peripherals_motors.hpp b/Peripherals/Inc/peripherals_motors.hpp index f733b4d..8de9c18 100644 --- a/Peripherals/Inc/peripherals_motors.hpp +++ b/Peripherals/Inc/peripherals_motors.hpp @@ -43,6 +43,8 @@ public: right_.forward.enable(); right_.backward.enable(); + sleep_pin_.set(false); + set(0, 0); }