]> git.feebdaed.xyz Git - linuxyz.git/commitdiff
i value reset
authorseantywork <seantywork@gmail.com>
Thu, 19 Jun 2025 11:05:51 +0000 (12:05 +0100)
committerseantywork <seantywork@gmail.com>
Thu, 19 Jun 2025 11:05:51 +0000 (12:05 +0100)
kgpio-irqsock/kgpio_irqsk.c
kgpio-irqsock/kgpio_irqsk.h

index f89de3dd25f08ceffacdd151a115b11567a31f6a..428b5eb32e9bd09029f068ed928380f6a466a560 100644 (file)
@@ -463,6 +463,7 @@ irqreturn_t gpio_data_irq_handler(int irq, void *dev_id) {
                                        i_value[MAX_PKTLEN-1]
                                );
                        }
+                       memset(i_value, 0, MAX_PKTLEN);
                        data_bits_count = 0;
                        comms_mode_i = 0;
                        return IRQ_HANDLED;
index b0badc0fd0779290b284c0b4ddf85edbc3b1a688..069c20f6823f3c0afbc2339154fcbb0dc1cf4cae 100644 (file)
@@ -40,7 +40,7 @@
 #define MAX_PKTLEN 1500
 #define MAX_Q_LEN 64
 
-#define SYNC_UDELAY 1024
+#define SYNC_UDELAY 64