mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
extmod/btstack: Fix indicate/notify queuing.
This adds a mechanism to track a pending notify/indicate operation that is deferred due to the send buffer being full. This uses a tracked alloc that is passed as the content arg to the callback. This replaces the previous mechanism that did this via the global pending op queue, shared with client read/write ops. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
@@ -117,6 +117,9 @@ typedef long mp_off_t;
|
||||
#define MICROPY_HELPER_LEXER_UNIX (1)
|
||||
#define MICROPY_VFS_POSIX (1)
|
||||
#define MICROPY_READER_POSIX (1)
|
||||
#ifndef MICROPY_TRACKED_ALLOC
|
||||
#define MICROPY_TRACKED_ALLOC (MICROPY_BLUETOOTH_BTSTACK)
|
||||
#endif
|
||||
|
||||
// VFS stat functions should return time values relative to 1970/1/1
|
||||
#define MICROPY_EPOCH_IS_1970 (1)
|
||||
|
||||
@@ -39,6 +39,6 @@
|
||||
|
||||
// Enable additional features.
|
||||
#define MICROPY_DEBUG_PARSE_RULE_NAME (1)
|
||||
#define MICROPY_TRACKED_ALLOC (1)
|
||||
#define MICROPY_TRACKED_ALLOC (1)
|
||||
#define MICROPY_WARNINGS_CATEGORY (1)
|
||||
#define MICROPY_PY_UCRYPTOLIB_CTR (1)
|
||||
|
||||
Reference in New Issue
Block a user