mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-23 00:47:02 +06:00
Update i2c.c
This commit is contained in:
parent
be0cfbb97e
commit
092416325b
|
@ -48,7 +48,7 @@ void i2c_master_init(void) {
|
|||
// returns: 0 => success
|
||||
// 1 => error
|
||||
uint8_t i2c_master_start(uint8_t address) {
|
||||
TWCR = (1<<TWINT)| (1<<TWEN) | (1<<TWSTA) ;
|
||||
TWCR = (1<<TWINT) | (1<<TWEN) | (1<<TWSTA);
|
||||
|
||||
i2c_delay();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user