summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32/tutorial
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2021-03-03 08:44:38 +0100
committerDamien George <damien@micropython.org>2021-03-12 00:39:26 +1100
commit046164098337cc79dd0f6c710f49bdf6765aa711 (patch)
tree1fa560d3c8998f570d7728261f89584fea18e165 /docs/esp32/tutorial
parenta075e0b7d87a66a4b2ee9f75bcf70887157c7ae2 (diff)
downloadmicropython-046164098337cc79dd0f6c710f49bdf6765aa711.tar.gz
micropython-046164098337cc79dd0f6c710f49bdf6765aa711.zip
rp2/rp2_pio: Fix sm.get(buf) to not wait after getting last item.
sm.get(buf) was waiting for one item more than the length of the supplied buffer. Even if this item was not stored, sm_get would block trying to get an item from the RX fifo. As part of the fix, the edge case for a zero length buffer was moved up to the section where the function arguments are handled. In case of a zero length buffer, sm.get() now returns immediately that buffer.
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions