Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e855ce8

Browse files
committed
Fixed bug in i2c slave task
(wrong length returned to callback)
1 parent 2a1d14d commit e855ce8

File tree

22 files changed

+1
-1
lines changed

22 files changed

+1
-1
lines changed

‎MicroPython_BUILD/components/micropython/esp32/machine_hw_i2c.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ STATIC void i2c_slave_task(void *pvParameters)
310310
// write transaction, data received from master
311311
cb_type = I2C_SLAVE_CBTYPE_DATA_RX;
312312
ovf = slave_state.rxovf;
313-
len = slave_state.rxptr-slave_state.rxaddr;
313+
len = slave_state.rxptr;
314314
addr = slave_state.rxaddr;
315315
}
316316
cb_type &= i2c_obj->slave_cbtype; // mask allowed callback types
-43 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
-3 Bytes
Binary file not shown.
2 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.
6 Bytes
Binary file not shown.
5 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /