firmware: enable spindle encoder

main
radex 2024-04-14 12:42:19 +02:00
parent fbd2790d3a
commit 9a31f1d1c5
Signed by: radex
SSH Key Fingerprint: SHA256:hvqRXAGG1h89yqnS+cyFTLKQbzjWD4uXIqw7Y+0ws30
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
#define DEBUG_I2C 0
#define DEBUG_PRINT_EVENTS 1
#define DEBUG_DISABLE_SPINDLE 1
#define DEBUG_DISABLE_SPINDLE 0
// --- pinout

View File

@ -28,8 +28,10 @@ bool validateSpindle() {
Serial.println("Could not detect magnet");
return false;
} else if (spindle.magnetTooWeak()) {
// NOTE: We get this message all the time even though spindle position reading seems fine
// and we can't bring magnet closer to the IC, so we'll ignore this for now
Serial.println("Magnet too weak");
return false;
// return false;
} else if (spindle.magnetTooStrong()) {
Serial.println("Magnet too strong");
return false;