mimxrt10xx: Use the correct error for not implemented functionality

Co-Authored-By: Scott Shawcroft <scott@tannewt.org>
This commit is contained in:
arturo182 2020-01-07 09:29:47 +01:00 committed by GitHub
parent 0068bafbb6
commit ff6d9d8a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@
#include "supervisor/shared/translate.h" #include "supervisor/shared/translate.h"
void common_hal_analogio_analogout_construct(analogio_analogout_obj_t* self, const mcu_pin_obj_t *pin) { void common_hal_analogio_analogout_construct(analogio_analogout_obj_t* self, const mcu_pin_obj_t *pin) {
mp_raise_RuntimeError(translate("AnalogOut functionality not supported")); mp_raise_NotImplementedError(translate("AnalogOut functionality not supported"));
} }
bool common_hal_analogio_analogout_deinited(analogio_analogout_obj_t *self) { bool common_hal_analogio_analogout_deinited(analogio_analogout_obj_t *self) {