Fix typos: "whether" and whitespace.

This commit is contained in:
Phil Hord 2015-07-14 15:14:59 -04:00 committed by Markus Hitter
parent 72253ed932
commit 503d2c75a1
7 changed files with 11 additions and 11 deletions

View File

@ -118,7 +118,7 @@ void gcode_init(void) {
\param c The next character to process. \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 This parser operates character by character, so there's no need for a
buffer holding the entire line of G-code. buffer holding the entire line of G-code.

View File

@ -6,11 +6,11 @@
#include "dda.h" #include "dda.h"
#include "sd.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 // if not defined, N's are completely ignored
//#define REQUIRE_LINENUMBER //#define REQUIRE_LINENUMBER
// wether to insist on a checksum // whether to insist on a checksum
//#define REQUIRE_CHECKSUM //#define REQUIRE_CHECKSUM
/// this is a very crude decimal-based floating point structure. /// this is a very crude decimal-based floating point structure.

View File

@ -445,7 +445,7 @@ void heater_set(heater_t index, uint8_t value) {
power_on(); power_on();
} }
/** \brief check wether all heaters are off /** \brief check whether all heaters are off
*/ */
uint8_t heaters_all_zero() { uint8_t heaters_all_zero() {
uint8_t i; uint8_t i;

View File

@ -114,7 +114,7 @@ DSTATUS disk_initialize(void) {
for (timeout = 10000; timeout && send_cmd(ACMD41, 1UL << 30); timeout--) for (timeout = 10000; timeout && send_cmd(ACMD41, 1UL << 30); timeout--)
delay_us(100); 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) { if (timeout && send_cmd(CMD58, 0) == 0) {
for (n = 0; n < 4; n++) for (n = 0; n < 4; n++)
ocr[n] = spi_rw(0xFF); 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. \return RES_OK on success, else RES_ERROR.
This starts reading a sector at offset and sends each character to the 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 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 an EOL, this function should be called again with the next sector of the
file. file.

4
sd.c
View File

@ -87,10 +87,10 @@ void sd_open(const char* filename) {
/** Read a line of G-code from a file. /** Read a line of G-code from a file.
\param A pointer to the parser function. This function should accept an \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. 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 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, SD card handling code reads a full sector (512 bytes) in each operation,

View File

@ -101,7 +101,7 @@ void timer_init() {
/*! Specify how long until the step timer should fire. /*! Specify how long until the step timer should fire.
\param delay in CPU ticks \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 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 then return 1 and do not schedule a timer interrupt. The calling code
usually wants to handle this case. 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 doesn't delay the requested time, but up to a full timer counter
overflow ( = 65536 / F_CPU = 3 to 4 milliseconds). 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 an interrupt. This is meaningful for ACCELERATION_TEMPORAL, where
requested delays can be zero or even negative. In this case, the requested delays can be zero or even negative. In this case, the
calling code should repeat the stepping code immediately and also calling code should repeat the stepping code immediately and also