Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/omega2-ws2811-lkm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-03-24 00:07:27 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-03-24 00:07:27 +0300
commit80e50589761d053bee3c62a68195f7eee4287918 (patch)
tree093584e2f17b63e150c21a48cfc8301e299883f6
parenta13fa34735a7b2a98f2dfcd629b785700f73d64d (diff)
Increased maximum pin count
-rw-r--r--src/ws2811.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ws2811.c b/src/ws2811.c
index 2dd8629..4c18547 100644
--- a/src/ws2811.c
+++ b/src/ws2811.c
@@ -46,7 +46,7 @@ MODULE_VERSION("2.0");
#define REG_WRITE(addr, value) iowrite32(value, gpio_regs + addr)
#define REG_READ(addr) ioread32(gpio_regs + addr)
-static u8 pins[8] = {-1, -1, -1, -1, -1, -1, -1, -1};
+static u8 pins[32] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
static int pin_count = 0;
static u16 led_count = 50;
static u8* leds_data = NULL;