From 503d2c75a1f20cc2c5d8ec31481b57811d861ae8 Mon Sep 17 00:00:00 2001 From: Phil Hord Date: Tue, 14 Jul 2015 15:14:59 -0400 Subject: [PATCH] Fix typos: "whether" and whitespace. --- gcode_parse.c | 2 +- gcode_parse.h | 4 ++-- heater.c | 2 +- mendel.c | 2 +- pff_diskio.c | 4 ++-- sd.c | 4 ++-- timer.c | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gcode_parse.c b/gcode_parse.c index a87e733..3bff098 100644 --- a/gcode_parse.c +++ b/gcode_parse.c @@ -118,7 +118,7 @@ void gcode_init(void) { \param c The next character to process. - \return Wether end of line was reached. + \return Whether end of line was reached. This parser operates character by character, so there's no need for a buffer holding the entire line of G-code. diff --git a/gcode_parse.h b/gcode_parse.h index 15f9afe..3db8a84 100644 --- a/gcode_parse.h +++ b/gcode_parse.h @@ -6,11 +6,11 @@ #include "dda.h" #include "sd.h" -// wether to insist on N line numbers +// whether to insist on N line numbers // if not defined, N's are completely ignored //#define REQUIRE_LINENUMBER -// wether to insist on a checksum +// whether to insist on a checksum //#define REQUIRE_CHECKSUM /// this is a very crude decimal-based floating point structure. diff --git a/heater.c b/heater.c index 072ad45..b9d4d1a 100644 --- a/heater.c +++ b/heater.c @@ -445,7 +445,7 @@ void heater_set(heater_t index, uint8_t value) { power_on(); } -/** \brief check wether all heaters are off +/** \brief check whether all heaters are off */ uint8_t heaters_all_zero() { uint8_t i; diff --git a/mendel.c b/mendel.c index db28362..0131a3e 100644 --- a/mendel.c +++ b/mendel.c @@ -192,7 +192,7 @@ void io_init(void) { power_off(); #endif - #ifdef DEBUG_LED_PIN + #ifdef DEBUG_LED_PIN WRITE(DEBUG_LED_PIN, 0); SET_OUTPUT(DEBUG_LED_PIN); #endif diff --git a/pff_diskio.c b/pff_diskio.c index d3dfa2b..e5c4b8b 100644 --- a/pff_diskio.c +++ b/pff_diskio.c @@ -114,7 +114,7 @@ DSTATUS disk_initialize(void) { for (timeout = 10000; timeout && send_cmd(ACMD41, 1UL << 30); timeout--) delay_us(100); - /* Find out wether it's a block device (CCS bit in OCR). */ + /* Find out whether it's a block device (CCS bit in OCR). */ if (timeout && send_cmd(CMD58, 0) == 0) { for (n = 0; n < 4; n++) ocr[n] = spi_rw(0xFF); @@ -221,7 +221,7 @@ DRESULT disk_readp(BYTE* buffer, DWORD sector, UINT offset, UINT count) { \return RES_OK on success, else RES_ERROR. This starts reading a sector at offset and sends each character to the - parser. The parser reports back wether an end of line (EOL) was reached, + parser. The parser reports back whether an end of line (EOL) was reached, which ends this function. If end of the sector is reached without finding an EOL, this function should be called again with the next sector of the file. diff --git a/sd.c b/sd.c index d71e7f5..b07f15f 100644 --- a/sd.c +++ b/sd.c @@ -87,10 +87,10 @@ void sd_open(const char* filename) { /** Read a line of G-code from a file. \param A pointer to the parser function. This function should accept an - uint8_t with the character to parse and return an uint8_t wether + uint8_t with the character to parse and return an uint8_t whether end of line (EOL) was reached. - \return Wether end of line (EOF) was reached or an error happened. + \return Whether end of line (EOF) was reached or an error happened. Juggling with a buffer smaller than 512 bytes means that the underlying SD card handling code reads a full sector (512 bytes) in each operation, diff --git a/timer.c b/timer.c index db09ef9..6ed99cb 100644 --- a/timer.c +++ b/timer.c @@ -101,7 +101,7 @@ void timer_init() { /*! Specify how long until the step timer should fire. \param delay in CPU ticks - \param check_short tells wether to check for impossibly short requests. This + \param check_short tells whether to check for impossibly short requests. This should be set to 1 for calls from the step interrupt. Short requests then return 1 and do not schedule a timer interrupt. The calling code usually wants to handle this case. @@ -111,7 +111,7 @@ void timer_init() { doesn't delay the requested time, but up to a full timer counter overflow ( = 65536 / F_CPU = 3 to 4 milliseconds). - \return a flag wether the requested time was too short to allow scheduling + \return a flag whether the requested time was too short to allow scheduling an interrupt. This is meaningful for ACCELERATION_TEMPORAL, where requested delays can be zero or even negative. In this case, the calling code should repeat the stepping code immediately and also