Further cleanup of inline delays

This commit is contained in:
Scott Lahteine
2018-04-27 19:20:22 -05:00
parent 724e9f56c8
commit 5ac226aa93
2 changed files with 47 additions and 36 deletions

View File

@ -1632,9 +1632,7 @@ void Temperature::disable_all_heaters() {
WRITE(MAX6675_SS, 0); // enable TT_MAX6675
// ensure 100ns delay - a bit extra is fine
asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz
asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz
DELAY_100NS; // Ensure 100ns delay
// Read a big-endian temperature value
max6675_temp = 0;