Commit 37612708 authored by Claes Sjofors's avatar Claes Sjofors

USB Joystick, bugfix for max number of channels

parent c2aa566c
......@@ -125,7 +125,7 @@ static pwr_tStatus IoCardInit( io_tCtx ctx,
int map_found = 0;
int name_found = 0;
for ( i = 0; i < IO_CHANLIST_SIZE; i++) {
for ( i = 0; i < cp->ChanListSize; i++) {
if ( cp->chanlist[i].sop) {
switch ( cp->chanlist[i].ChanClass) {
case pwr_cClass_ChanAi: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment