/PIC Stuff/PICX_16F1825_Controller/base_I2C.c/base_I2C.c |
---|
310,7 → 310,7 |
SSPCON2bits.RCEN = 1; |
break; |
case I2C_SEND_STOP: |
// Send the stop bit and copy message to send to Main() |
// Send the stop bit |
i2c_data_p->operating_state = I2C_IDLE; |
SSPCON2bits.PEN = 1; |
i2c_data_p->master_status = I2C_MASTER_IDLE; |
518,6 → 518,8 |
uint8_t I2C_Process_Receive(uint8_t c) { |
uint8_t ret = 0; |
BTN_STATUS btns; |
CLRWDT(); |
btns.value = 0; |
switch (c) { |
case CMD_QUERY_BTN: |
Pins_Read(&btns); |