From 4c6b635298a1896a4bd3b98ffc6f6321bd58afb3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 25 Feb 2017 09:39:33 -0600 Subject: [PATCH] Fix error in previous commit. --- arch/arm/src/stm32/stm32_qencoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32/stm32_qencoder.c b/arch/arm/src/stm32/stm32_qencoder.c index f90cb20599..056b7d43f4 100644 --- a/arch/arm/src/stm32/stm32_qencoder.c +++ b/arch/arm/src/stm32/stm32_qencoder.c @@ -819,7 +819,7 @@ static int stm32_setup(FAR struct qe_lowerhalf_s *lower) /* Enable clocking to the timer */ - modifyreg32(priv->regaddr, 0, priv->enable); + modifyreg32(priv->config->regaddr, 0, priv->config->enable); /* Timer base configuration */ @@ -1126,7 +1126,7 @@ static int stm32_shutdown(FAR struct qe_lowerhalf_s *lower) /* Disable clocking to the timer */ - modifyreg32(priv->regaddr, priv->enable, 0); + modifyreg32(priv->config->regaddr, priv->config->enable, 0); /* Put the TI1 GPIO pin back to its default state */