Mods to make encoder work again, and a possible 2nd iteration of encoder config

This commit is contained in:
Hakan Bastedt
2024-04-09 08:25:59 +02:00
parent ec1c8fc70f
commit 939470a0c6
6 changed files with 94 additions and 14 deletions

View File

@@ -10,5 +10,12 @@ license "GPL";
//main function
FUNCTION(_) {
index_latch_enable = index_c_enable;
index_c_enable = index_status;
if (index_latch_enable) {
if (index_status) {
index_c_enable = 0;
}
// else wait for index-status
} else {
index_c_enable = index_status;
}
}