This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit aac9c4b78a79b5a914495a3199be79e51f0e1c3f
Author: Xiang Xiao <xiaoxi...@xiaomi.com>
AuthorDate: Wed Jan 12 00:33:29 2022 +0800

    input/ajoystck: Remove ajoy_enable from ajoy_sample
    
    since ajoy_sample doesn't change the status
    
    Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com>
---
 drivers/input/ajoystick.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/input/ajoystick.c b/drivers/input/ajoystick.c
index 64ed1c5..443aeb7 100644
--- a/drivers/input/ajoystick.c
+++ b/drivers/input/ajoystick.c
@@ -331,10 +331,6 @@ static void ajoy_sample(FAR struct ajoy_upperhalf_s *priv)
         }
     }
 
-  /* Enable/disable interrupt handling */
-
-  ajoy_enable(priv);
-
   priv->au_sample = sample;
   leave_critical_section(flags);
 }

Reply via email to