We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f5e93c commit f8334aeCopy full SHA for f8334ae
pic18f26k83/i2c.c
@@ -65,7 +65,7 @@ w_status_t i2c_init(uint8_t clkdiv) {
65
66
// Wait for clock to stabilize
67
unsigned int timeout = 1000;
68
- while (!CLKRCONbits.CLKRDY && --timeout)
+ while (!CLKRCONbits.CLKRDC && --timeout)
69
;
70
if (!timeout) {
71
return W_IO_ERROR;
0 commit comments