From 27b2f0bd874755b96d62ffb6ec9a2fd272050e61 Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 28 Jun 2022 04:03:09 +0200 Subject: [PATCH] Turn both power transistors explicitly on. --- src/bridge.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bridge.c b/src/bridge.c index 948d134..bd67ad0 100644 --- a/src/bridge.c +++ b/src/bridge.c @@ -58,8 +58,13 @@ sm_t bridge_statemachine = { void brdg_BothGndOn(void) { + /* Turn both GND transistors on */ setPin(&PORTB, PB6); setPin(&PORTB, PB4); + + /* Turn both PWR transistors off */ + unsetPin(&PORTB, PB7); + unsetPin(&PORTB, PB5); } void brdg_Hb1GndOn(void)