Better handling of DELAY_NS and DELAY_US (#10717)

Co-Authored-By: ejtagle <ejtagle@hotmail.com>
This commit is contained in:
Scott Lahteine 2018-05-12 04:22:55 -05:00 committed by GitHub
parent 0aa791d62b
commit 039302bf4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 166 additions and 132 deletions

View file

@ -31,6 +31,7 @@
#include "planner.h"
#include "language.h"
#include "printcounter.h"
#include "delay.h"
#if ENABLED(HEATER_0_USES_MAX6675)
#include "MarlinSPI.h"
@ -1611,7 +1612,7 @@ void Temperature::disable_all_heaters() {
WRITE(MAX6675_SS, 0); // enable TT_MAX6675
DELAY_100NS; // Ensure 100ns delay
DELAY_NS(100); // Ensure 100ns delay
// Read a big-endian temperature value
max6675_temp = 0;