From ced7d6315d2d0cebb2be87bc9dae263b1a3dabef Mon Sep 17 00:00:00 2001 From: SG Date: Thu, 10 Jun 2021 20:29:12 +1000 Subject: [PATCH] Api HAL rfid: fix power consumption on f6 board (#516) --- firmware/targets/f6/api-hal/api-hal-rfid.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/firmware/targets/f6/api-hal/api-hal-rfid.c b/firmware/targets/f6/api-hal/api-hal-rfid.c index c120d18d..dff05f28 100644 --- a/firmware/targets/f6/api-hal/api-hal-rfid.c +++ b/firmware/targets/f6/api-hal/api-hal-rfid.c @@ -13,7 +13,7 @@ void api_hal_rfid_pins_reset() { // pulldown rfid antenna hal_gpio_init(&gpio_rfid_carrier_out, GpioModeOutputPushPull, GpioSpeedLow, GpioPullNo); - hal_gpio_write(&gpio_rfid_carrier_out, true); + hal_gpio_write(&gpio_rfid_carrier_out, false); // from both sides hal_gpio_init(&gpio_rfid_pull, GpioModeOutputPushPull, GpioSpeedLow, GpioPullNo); @@ -45,7 +45,11 @@ void api_hal_rfid_pins_read() { // carrier pin to timer out hal_gpio_init_ex( - &gpio_rfid_carrier_out, GpioModeAltFunctionPushPull, GpioSpeedLow, GpioPullNo, GpioAltFn1TIM1); + &gpio_rfid_carrier_out, + GpioModeAltFunctionPushPull, + GpioSpeedLow, + GpioPullNo, + GpioAltFn1TIM1); // comparator in hal_gpio_init(&gpio_rfid_data_in, GpioModeAnalog, GpioSpeedLow, GpioPullNo);