atmel-samd: Remove pin reference from AnalogOut error. Fixes #83

This commit is contained in:
Scott Shawcroft 2017-02-19 14:38:24 +01:00
parent d67968e3c3
commit c4ee6d5716

View File

@ -38,7 +38,7 @@ void common_hal_nativeio_analogout_construct(nativeio_analogout_obj_t* self,
const mcu_pin_obj_t *pin) {
if (pin->pin != PIN_PA02) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError,
"AnalogOut only supported on pin PA02."));
"AnalogOut not supported on given pin."));
return;
}
struct dac_config config_dac;