# HG changeset patch # User Paul Boddie # Date 1609692816 -3600 # Node ID 442c6e51641a88e0befa7d4c22a1bec43f790374 # Parent 2891ef300b865c0d4ccf6d7cbba4c11c9555ab93 Fixed previous I2C support introduction. diff -r 2891ef300b86 -r 442c6e51641a pkg/devices/lib/i2c/src/jz4730.cc --- a/pkg/devices/lib/i2c/src/jz4730.cc Sun Jan 03 17:28:05 2021 +0100 +++ b/pkg/devices/lib/i2c/src/jz4730.cc Sun Jan 03 17:53:36 2021 +0100 @@ -137,9 +137,9 @@ { start(); + _regs[I2c_data] = (address << 1) | (read ? 1 : 0); while (nack()); - _regs[I2c_data] = (address << 1) | (read ? 1 : 0); send_next(); if (read)