Skip to content

Commit 4a3efd7

Browse files
committed
atsam4s bugfix setting start bit when not needed
1 parent 405368c commit 4a3efd7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

targets/core/atmel/atsam4s/i2c.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ namespace klib::core::atsam4s::io {
7373
// set the address we want to write to
7474
read_write_set_address<false>(address);
7575

76-
// start the transaction (also set the end flag
77-
// if we have less or equal than 1 byte)
78-
I2c::port->CR = 0x1 | ((data.size() <= 1 && SendStop) ? (0x1 << 1) : 0x00);
79-
8076
// wait until we can write into the transmit holding register
8177
const uint32_t s = wait_for_status((0x1 << 8) | (0x1 << 2));
8278

0 commit comments

Comments
 (0)