jonneytest / sma-bluetooth

Automatically exported from code.google.com/p/sma-bluetooth
0 stars 0 forks source link

smatool.c:1034 SetInverterType() seems to be incorrect #55

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In the file smatool.c:1034  SetInverterType() seems to be incorrect
The code:

    if( strcmp(conf->Inverter, "3000TL") == 0 ) {
        conf->InverterCode[0] = 0x12;
        conf->InverterCode[1] = 0x1a;
        conf->InverterCode[2] = 0xd9;
        conf->InverterCode[3] = 0x38;
        conf->InverterCode[0] = 0x32;
        conf->InverterCode[1] = 0x42;
        conf->InverterCode[2] = 0x85;
        conf->InverterCode[3] = 0x38;
        conf->ArchiveCode    = 0x71;
    }

is either missing some code, or the first assignments should be removed.

Original issue reported on code.google.com by h.bekker...@gmail.com on 8 Dec 2011 at 6:12

GoogleCodeExporter commented 8 years ago
The file, containing the file, was: sma-bluetooth-0.15.tgz 

Original comment by h.bekker...@gmail.com on 8 Dec 2011 at 6:13