mstrens / oXs_on_RP2040

version of openXsensor to be used on raspberry pi pico RP2040 (more protocols, more functionalities)
87 stars 22 forks source link

negative values of current with Ibus #88

Closed aeropic closed 1 year ago

aeropic commented 1 year ago

Hi Michel, I bought a FS-IA6B RX working with Ibus protocol. I get the same issue I had with S-PORT ; negative values of current are not supported.

Based on VERSION "2.5.10" I added a test of sign in ibus.cpp case CURRENT: ibusValue= int_round(fields[fieldId].value , 10); // from mamp to 0.01A if (ibusValue < 0) ibusValue =0; break;

It fixes the problem. src.zip

Thanks, regards Alain

aeropic commented 1 year ago

closed in 2.6.7 (or above !)