earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 boards
GNU Lesser General Public License v2.1
1.88k stars 394 forks source link

Avoid malloc/free while in HCI callbacks #2219

Closed earlephilhower closed 1 month ago

earlephilhower commented 1 month ago

Bluetooth operates at IRQ level, so using std::list (which needs to new and delete objects) is not legal. Use a fixed, preallocated vector instead.