summaryrefslogtreecommitdiff
path: root/py/misc.h
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-09-25 15:50:37 +0200
committerDamien George <damien@micropython.org>2022-10-31 11:54:46 +1100
commit7775523b2ded41ee8929522341c242eee43e9a48 (patch)
tree781df17e0abcbb05bcc9f4d949103aaef251c6df /py/misc.h
parent5b2929a0e69a4f3667ae9f0dbbfe3677ebc840ad (diff)
esp32/machine_pwm: Verify PWM is active when config methods are called.
Checks are added for pwm.freq(), pwm_duty(), pwm_duty_u10() and pwm.duty_u16(). This avoids a core dump on ESP32C3, and misleading error messages on Xtensa ESP32 devices.
Diffstat (limited to 'py/misc.h')
0 files changed, 0 insertions, 0 deletions