Commit fd93b6eb authored by Claes Sjofors's avatar Claes Sjofors

OneWire, fix for generic ao device

parent acf2a1bc
...@@ -161,7 +161,7 @@ static pwr_tStatus IoCardWrite( io_tCtx ctx, ...@@ -161,7 +161,7 @@ static pwr_tStatus IoCardWrite( io_tCtx ctx,
else else
num = snprintf( str, sizeof(str), op->Format, fvalue); num = snprintf( str, sizeof(str), op->Format, fvalue);
if ( num != 1) if ( num == 0)
op->Super.ErrorCount++; op->Super.ErrorCount++;
break; break;
...@@ -186,7 +186,7 @@ static pwr_tStatus IoCardWrite( io_tCtx ctx, ...@@ -186,7 +186,7 @@ static pwr_tStatus IoCardWrite( io_tCtx ctx,
else else
num = snprintf( str, sizeof(str), op->Format, ivalue); num = snprintf( str, sizeof(str), op->Format, ivalue);
if ( num != 1) if ( num == 0)
op->Super.ErrorCount++; op->Super.ErrorCount++;
} }
} }
......
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