summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial/intro.rst
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2024-10-01 21:40:06 +0200
committerDamien George <damien@micropython.org>2024-10-30 15:14:30 +1100
commit86c71a0307a509b6c47fbb7ce1ab2d827ff92653 (patch)
treef1eb19f65bb20e82ae0df006ec3982640c49ed83 /docs/esp8266/tutorial/intro.rst
parent9ea8d2a03181681feebaede3add82ec4970e30d7 (diff)
downloadmicropython-86c71a0307a509b6c47fbb7ce1ab2d827ff92653.tar.gz
micropython-86c71a0307a509b6c47fbb7ce1ab2d827ff92653.zip
esp32/machine_hw_spi: Reject invalid number of bits in constructor.
This commit adds an extra bit of parameters validation to the SPI bus constructor on ESP32. Passing 0 as the number of bits would trigger a division by zero error when performing read/write operations on an SPI bus created in such a fashion. Fixes issue #5910. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/esp8266/tutorial/intro.rst')
0 files changed, 0 insertions, 0 deletions