diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2024-10-01 21:40:06 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-10-30 15:14:30 +1100 |
commit | 86c71a0307a509b6c47fbb7ce1ab2d827ff92653 (patch) | |
tree | f1eb19f65bb20e82ae0df006ec3982640c49ed83 /docs/esp8266/tutorial/intro.rst | |
parent | 9ea8d2a03181681feebaede3add82ec4970e30d7 (diff) | |
download | micropython-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