This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Patch: missing break in hsi2c.c

Without the breaks it always falls through to case 3 (in I2COwnAddressSet):

    {
        case 0 : 
            HWREG(baseAdd + I2C_OA) = slaveAdd;
+           break;

        case 1 : 
            HWREG(baseAdd + I2C_OAn(0)) = slaveAdd;
+           break;

        case 2 : 
            HWREG(baseAdd + I2C_OAn(1)) = slaveAdd;
+           break;

        case 3 :
            HWREG(baseAdd + I2C_OAn(2)) = slaveAdd;
+           break;
      }
}

 

Thanks,

Orjan