Fix pullup/pulldown configuration, update docs

This commit is contained in:
Samuel Sadok
2020-08-24 13:00:15 +02:00
parent f59c80515b
commit f3fa0af5c1
12 changed files with 101 additions and 82 deletions
-1
View File
@@ -103,7 +103,6 @@ void Encoder::enc_index_cb() {
void Encoder::set_idx_subscribe(bool override_enable) {
if (config_.use_index && (override_enable || !config_.find_idx_on_lockin_only)) {
index_gpio_.config(GPIO_MODE_INPUT, GPIO_PULLDOWN);
if (!index_gpio_.subscribe(true, false, enc_index_cb_wrapper, this)) {
odrv.misconfigured_ = true;
}