minor fixes: comments, indenting, etc

This commit is contained in:
Michael Moon 2010-09-18 08:08:31 +10:00
parent f037bb5320
commit c1dbd869f5
3 changed files with 53 additions and 53 deletions

2
temp.c
View File

@ -3,7 +3,7 @@
This file currently reads temp from a MAX6675 on the SPI bus. This file currently reads temp from a MAX6675 on the SPI bus.
ALL VALUES are in units of 0.25 degrees celsius, so temp_set(500) will set the temperature to 125 celsius, and temp_get() = 600 is reporting a temperature of 150 celsius. temp fields are 14.2 fixed point, so temp_set(500) will set the temperature to 125 celsius, and temp_get() = 600 is reporting a temperature of 150 celsius.
the conversion to/from this unit is done in gcode.c, near: the conversion to/from this unit is done in gcode.c, near:
if (next_target.M == 104) if (next_target.M == 104)

View File

@ -96,7 +96,7 @@ uint16_t getTimerCeiling(const uint32_t delay)
void setTimer(uint32_t delay) void setTimer(uint32_t delay)
{ {
// delay is the delay between steps in microsecond ticks. // delay is the delay between steps in IOclk ticks.
// //
// we break it into 5 different resolutions based on the delay. // we break it into 5 different resolutions based on the delay.
// then we set the resolution based on the size of the delay. // then we set the resolution based on the size of the delay.
@ -115,7 +115,7 @@ void setTimer(uint32_t delay)
void delay(uint32_t delay) { void delay(uint32_t delay) {
wd_reset(); wd_reset();
while (delay > 65535) { while (delay > 65535) {
delayMicrosecondsInterruptible(65534); delayMicrosecondsInterruptible(65533);
delay -= 65535; delay -= 65535;
wd_reset(); wd_reset();
} }