File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
ports/espressif/common-hal/rotaryio Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3127,7 +3127,7 @@ msgid "division by zero"
3127
3127
msgstr ""
3128
3128
3129
3129
#: ports/espressif/common-hal/rotaryio/IncrementalEncoder.c
3130
- msgid "divisor must be 4 "
3130
+ msgid "divisor cannot be changed after object creation "
3131
3131
msgstr ""
3132
3132
3133
3133
#: extmod/ulab/code/numpy/vector.c
Original file line number Diff line number Diff line change @@ -135,5 +135,5 @@ mp_int_t common_hal_rotaryio_incrementalencoder_get_divisor(rotaryio_incremental
135
135
}
136
136
137
137
void common_hal_rotaryio_incrementalencoder_set_divisor (rotaryio_incrementalencoder_obj_t * self , mp_int_t divisor ) {
138
- self -> divisor = divisor ;
138
+ mp_raise_ValueError ( translate ( " divisor cannot be changed after object creation" )) ;
139
139
}
You can’t perform that action at this time.
0 commit comments