Definitions for IC_TX_BUFFER_DEPTH inconsistent (fixes #335) (#381)

This commit is contained in:
Luke Wren 2021-05-05 17:45:12 +01:00 committed by GitHub
parent 8f3c3ff12a
commit 7fc75d8c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ int i2c_read_blocking(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, b
* least that many bytes can be written without blocking.
*/
static inline size_t i2c_get_write_available(i2c_inst_t *i2c) {
const size_t IC_TX_BUFFER_DEPTH = 32;
const size_t IC_TX_BUFFER_DEPTH = 16;
return IC_TX_BUFFER_DEPTH - i2c_get_hw(i2c)->txflr;
}