Commit 3ddd88ff authored by claes's avatar claes

GPIO fix for not connected signal

parent d8a9c5c3
...@@ -162,7 +162,7 @@ static pwr_tStatus IoCardRead( io_tCtx ctx, ...@@ -162,7 +162,7 @@ static pwr_tStatus IoCardRead( io_tCtx ctx,
} }
for ( i = 0; i < GPIO_MAX_CHANNELS; i++) { for ( i = 0; i < GPIO_MAX_CHANNELS; i++) {
if ( cp->chanlist[i].cop) { if ( cp->chanlist[i].cop && cp->chanlist[i].vbp) {
switch( cp->chanlist[i].ChanClass) { switch( cp->chanlist[i].ChanClass) {
case pwr_cClass_ChanDi: case pwr_cClass_ChanDi:
fflush( local->value_fp[i]); fflush( local->value_fp[i]);
...@@ -204,7 +204,7 @@ static pwr_tStatus IoCardWrite( io_tCtx ctx, ...@@ -204,7 +204,7 @@ static pwr_tStatus IoCardWrite( io_tCtx ctx,
} }
for ( i = 0; i < GPIO_MAX_CHANNELS; i++) { for ( i = 0; i < GPIO_MAX_CHANNELS; i++) {
if ( cp->chanlist[i].cop) { if ( cp->chanlist[i].cop && cp->chanlist[i].vbp) {
switch( cp->chanlist[i].ChanClass) { switch( cp->chanlist[i].ChanClass) {
case pwr_cClass_ChanDo: case pwr_cClass_ChanDo:
if ( *(pwr_tBoolean *)cp->chanlist[i].vbp) if ( *(pwr_tBoolean *)cp->chanlist[i].vbp)
......
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