-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix up MAX31865 / SPI (PT100 & PT1000) support #20074
Merged
thinkyhead
merged 17 commits into
MarlinFirmware:bugfix-2.0.x
from
GadgetAngel:Marlin-Fix-2AdafruitMAX31865
Nov 11, 2020
Merged
Fix up MAX31865 / SPI (PT100 & PT1000) support #20074
thinkyhead
merged 17 commits into
MarlinFirmware:bugfix-2.0.x
from
GadgetAngel:Marlin-Fix-2AdafruitMAX31865
Nov 11, 2020
Commits on Nov 11, 2020
-
Fixes issue with "temp errors"
This branch stops the false error message that were being produce from occurring and being sent to SERIAL_PORT. See #19994 (comment). Added a new ability that when the Adafruit MAX31865 board is checked for faults, the code will now display which of the seven (7) possible faults it found on the SERIAL_PORT with an appropriate error message. Before it just displayed "Error: temp measurement error MAX6675", which does not indicate the fault condition of the Adafruit MAX31865. After a fault is found and message is displayed, the code will clear the fault on the board. Fixed the incorrect temperature being displayed by the Adafruit MAX31865 board connected to TEMP_SENSOR_1. This error was caused by the fact that Marlin never instantiated and object for the second Adafruit MAX31865 which meant it was never initialized and the raw data being produced by the board was never getting converted because Marlin did not handle the data coming from the board and convert it to Celsius. The wrong temperature value was read ~2047 at room temperature. Marlin did display the correct temperature for the first Adafruit MAX31865 connected to TEMP_SENSOR_0. Added a new ability that allows the user to use a (PT100 on E0 and a PT1000 on E1) OR (PT1000 on E0 and a PT100 on E1). To do this I updated the MAX31865_SENSOR_OHMS to MAX31865_SENSOR_OHMS_0. I also updated MAX31865_CALIBRATION_OHMS to MAX31865_CALIBRATION_OHMS_0. I then added two additional Marlin variables which are used for TEMP_SENSOR_1 called MAX31865_SENSOR_OHMS_1 and MAX31865_CALIBRATION_OHMS_1. With these four Marlin variables, the user can now use a PT100 and a PT1000 on the printer at the same time. Added a check in SanityCheck.h that check to ensure that MAX31865_SENSOR_OHMS_1 and MAX31865_CALIBRATION_OHMS_1 are set if TEMP_SENSOR_1 is using the MAX31865 board. See #19994 (comment). This branch fixes the "temp errors" being sent to the SERIAL_PORT. Feature request fullfilled: #19663 (comment)
Configuration menu - View commit details
-
Copy full SHA for b2bd547 - Browse repository at this point
Copy the full SHA b2bd547View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a03000 - Browse repository at this point
Copy the full SHA 2a03000View commit details -
Configuration menu - View commit details
-
Copy full SHA for c47ca8d - Browse repository at this point
Copy the full SHA c47ca8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fddc5c - Browse repository at this point
Copy the full SHA 4fddc5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32f8816 - Browse repository at this point
Copy the full SHA 32f8816View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd1f907 - Browse repository at this point
Copy the full SHA cd1f907View commit details -
Configuration menu - View commit details
-
Copy full SHA for 547bb14 - Browse repository at this point
Copy the full SHA 547bb14View commit details -
Configuration menu - View commit details
-
Copy full SHA for f54e343 - Browse repository at this point
Copy the full SHA f54e343View commit details -
Configuration menu - View commit details
-
Copy full SHA for 308c18f - Browse repository at this point
Copy the full SHA 308c18fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5be2242 - Browse repository at this point
Copy the full SHA 5be2242View commit details -
Configuration menu - View commit details
-
Copy full SHA for a57bf41 - Browse repository at this point
Copy the full SHA a57bf41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0564506 - Browse repository at this point
Copy the full SHA 0564506View commit details -
Configuration menu - View commit details
-
Copy full SHA for e71c2b7 - Browse repository at this point
Copy the full SHA e71c2b7View commit details -
fix HAS_MULTIP_6675 null condition & compiler warning
In temperature.h if HAS_MULTI_6675 does not have a 1 after it. HAS_MULTI_6675 is defined as NUL In temperature.cpp when Thermocouple is open the max6675_temp value is meant to have a TMAX * 4 so I added the pair of parentheses so the compiler would stop throwing a waring message about the statement being a binary statement.
Configuration menu - View commit details
-
Copy full SHA for 72d680b - Browse repository at this point
Copy the full SHA 72d680bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f778c1b - Browse repository at this point
Copy the full SHA f778c1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 70f0da5 - Browse repository at this point
Copy the full SHA 70f0da5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 99713e4 - Browse repository at this point
Copy the full SHA 99713e4View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.