minor fixes: comments, indenting, etc
This commit is contained in:
parent
f037bb5320
commit
c1dbd869f5
2
temp.c
2
temp.c
|
|
@ -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)
|
||||||
|
|
|
||||||
4
timer.c
4
timer.c
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue