From 38ee395ac72f021930673b25a4e424cd07f7b33d Mon Sep 17 00:00:00 2001 From: daid303 Date: Mon, 17 Dec 2012 11:12:11 +0100 Subject: [PATCH] Replace the 1ms delay for 2 nops to get a 100ns delay. #259 --- Marlin/temperature.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 8a6997ad5..6093c9934 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -869,7 +869,8 @@ int read_max6675() WRITE(MAX6675_SS, 0); // 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 SPDR = 0;