mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
Replace the 1ms delay for 2 nops to get a 100ns delay. #259
This commit is contained in:
parent
5df5e4c4a2
commit
38ee395ac7
@ -869,7 +869,8 @@ int read_max6675()
|
|||||||
WRITE(MAX6675_SS, 0);
|
WRITE(MAX6675_SS, 0);
|
||||||
|
|
||||||
// ensure 100ns delay - a bit extra is fine
|
// ensure 100ns delay - a bit extra is fine
|
||||||
delay(1);
|
asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz
|
||||||
|
asm("nop");//50ns on 20Mhz, 62.5ns on 16Mhz
|
||||||
|
|
||||||
// read MSB
|
// read MSB
|
||||||
SPDR = 0;
|
SPDR = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user