From 0a4d330483b43ef72fd8feee9b80158bafd4f191 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Thu, 4 Jan 2024 15:45:03 +0300 Subject: [PATCH] mx33810: ups --- firmware/hw_layer/drivers/gpio/mc33810.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/hw_layer/drivers/gpio/mc33810.cpp b/firmware/hw_layer/drivers/gpio/mc33810.cpp index 82119ac242..21c26e0957 100644 --- a/firmware/hw_layer/drivers/gpio/mc33810.cpp +++ b/firmware/hw_layer/drivers/gpio/mc33810.cpp @@ -423,10 +423,10 @@ int Mc33810::chip_init() uint16_t mode_select_cmd = /* set IGN/GP mode for GPx outputs */ - (engineConfiguration->mc33810Gpgd0Mode << 8) | - (engineConfiguration->mc33810Gpgd1Mode << 8) | - (engineConfiguration->mc33810Gpgd2Mode << 8) | - (engineConfiguration->mc33810Gpgd3Mode << 8) | + (engineConfiguration->mc33810Gpgd0Mode << 8) | + (engineConfiguration->mc33810Gpgd1Mode << 9) | + (engineConfiguration->mc33810Gpgd2Mode << 10) | + (engineConfiguration->mc33810Gpgd3Mode << 11) | /* disable/enable retry after recovering from under/overvoltage */ (engineConfiguration->mc33810DisableRecoveryMode << 6) | 0;