Further cleanup of inline delays
This commit is contained in:
parent
d86efae37c
commit
81b9914704
2 changed files with 47 additions and 36 deletions
|
|
@ -1616,9 +1616,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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue