aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-10-13 22:05:19 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-10-13 22:05:19 -0400
commit674f58419043c140468a7711d9fd565a0e1aaa25 (patch)
tree1093ca42f733b8097939e2d3ec38757ec6675a15 /src
parent77fea562c45bcf0808587a2a787d37703b4620f7 (diff)
downloadkutter-674f58419043c140468a7711d9fd565a0e1aaa25.tar.gz
kutter-674f58419043c140468a7711d9fd565a0e1aaa25.tar.xz
kutter-674f58419043c140468a7711d9fd565a0e1aaa25.zip
pca9685: Fix missing devices_count increment
The devices_count was not being incremented on each device add. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/linux/pca9685.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/linux/pca9685.c b/src/linux/pca9685.c
index 386ad292..92927610 100644
--- a/src/linux/pca9685.c
+++ b/src/linux/pca9685.c
@@ -115,6 +115,7 @@ open_i2c(uint8_t bus, uint8_t addr, uint32_t cycle_ticks)
devices[devices_count].addr = addr;
devices[devices_count].cycle_ticks = cycle_ticks;
devices[devices_count].fd = fd;
+ devices_count++;
return fd;
}