Skip to content

Commit f8334ae

Browse files
committed
fix typo
1 parent 0f5e93c commit f8334ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pic18f26k83/i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ w_status_t i2c_init(uint8_t clkdiv) {
6565

6666
// Wait for clock to stabilize
6767
unsigned int timeout = 1000;
68-
while (!CLKRCONbits.CLKRDY && --timeout)
68+
while (!CLKRCONbits.CLKRDC && --timeout)
6969
;
7070
if (!timeout) {
7171
return W_IO_ERROR;

0 commit comments

Comments
 (0)