diff --git a/examples/c++/hmtrp.cxx b/examples/c++/hmtrp.cxx index 3d58ba96..3de0671d 100644 --- a/examples/c++/hmtrp.cxx +++ b/examples/c++/hmtrp.cxx @@ -135,7 +135,7 @@ int main (int argc, char **argv) if (rv > 0) cout << "Received: " << radioBuffer << endl; - if (rv < 0) // some sort of read error occured + if (rv < 0) // some sort of read error occurred { cerr << "Port read error." << endl; break; diff --git a/examples/c++/ublox6.cxx b/examples/c++/ublox6.cxx index a0cd5f29..adc2886d 100644 --- a/examples/c++/ublox6.cxx +++ b/examples/c++/ublox6.cxx @@ -77,7 +77,7 @@ int main (int argc, char **argv) if (rv > 0) write(1, nmeaBuffer, rv); - if (rv < 0) // some sort of read error occured + if (rv < 0) // some sort of read error occurred { cerr << "Port read error." << endl; break; diff --git a/examples/java/AM2315Example.java b/examples/java/AM2315Example.java index 1edf785c..3da2ff57 100644 --- a/examples/java/AM2315Example.java +++ b/examples/java/AM2315Example.java @@ -57,7 +57,7 @@ public class AM2315Example { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/java/Ad8232Example.java b/examples/java/Ad8232Example.java index d707fcb5..0ee0f2c0 100644 --- a/examples/java/Ad8232Example.java +++ b/examples/java/Ad8232Example.java @@ -42,7 +42,7 @@ public class Ad8232Example { Thread.sleep(1); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following error has occured: "+e.getMessage()); + System.out.println("The following error has occurred: "+e.getMessage()); } } } diff --git a/examples/java/Apds9002.java b/examples/java/Apds9002.java index 4bb5de8f..0c6b7cb7 100644 --- a/examples/java/Apds9002.java +++ b/examples/java/Apds9002.java @@ -38,7 +38,7 @@ public class Apds9002 { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/java/Gp2y0aExample.java b/examples/java/Gp2y0aExample.java index 0837f559..1501b877 100644 --- a/examples/java/Gp2y0aExample.java +++ b/examples/java/Gp2y0aExample.java @@ -59,7 +59,7 @@ public class Gp2y0aExample { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/java/GroveEmg.java b/examples/java/GroveEmg.java index eaa8ba04..98277011 100644 --- a/examples/java/GroveEmg.java +++ b/examples/java/GroveEmg.java @@ -39,7 +39,7 @@ public class GroveEmg { Thread.sleep(100); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } } diff --git a/examples/java/GroveGsr.java b/examples/java/GroveGsr.java index 08a04b9d..d7e9a69c 100644 --- a/examples/java/GroveGsr.java +++ b/examples/java/GroveGsr.java @@ -41,7 +41,7 @@ public class GroveGsr { Thread.sleep(500); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/java/GroveO2Example.java b/examples/java/GroveO2Example.java index fe22b80f..6ef0e61e 100644 --- a/examples/java/GroveO2Example.java +++ b/examples/java/GroveO2Example.java @@ -38,7 +38,7 @@ public class GroveO2Example { Thread.sleep(100); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception has occured: "+e.getMessage()); + System.out.println("The following exception has occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/java/HP20xExample.java b/examples/java/HP20xExample.java index 80820314..17e94411 100644 --- a/examples/java/HP20xExample.java +++ b/examples/java/HP20xExample.java @@ -42,7 +42,7 @@ public class HP20xExample { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/java/Th02Example.java b/examples/java/Th02Example.java index 3cb06ae7..206f89ec 100644 --- a/examples/java/Th02Example.java +++ b/examples/java/Th02Example.java @@ -39,7 +39,7 @@ public class Th02Example { Thread.sleep(500); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception has occured: "+e.getMessage()); + System.out.println("The following exception has occurred: "+e.getMessage()); } } } diff --git a/examples/java/Tsl2561.java b/examples/java/Tsl2561.java index e38a4e5e..895b2e5d 100644 --- a/examples/java/Tsl2561.java +++ b/examples/java/Tsl2561.java @@ -52,7 +52,7 @@ public class Tsl2561 { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/java/WaterLevelSensor.java b/examples/java/WaterLevelSensor.java index d08aaee3..c13ec5b7 100644 --- a/examples/java/WaterLevelSensor.java +++ b/examples/java/WaterLevelSensor.java @@ -43,7 +43,7 @@ public class WaterLevelSensor { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block - System.out.println("The following exception occured: "+e.getMessage()); + System.out.println("The following exception occurred: "+e.getMessage()); } } //! [Interesting] diff --git a/examples/javascript/hmtrp.js b/examples/javascript/hmtrp.js index 3bdd0f20..94a803dc 100644 --- a/examples/javascript/hmtrp.js +++ b/examples/javascript/hmtrp.js @@ -128,7 +128,7 @@ function runRadio() console.log("Received: " + resultStr); } - if (rv < 0) // some sort of read error occured + if (rv < 0) // some sort of read error occurred { console.log("Port read error."); return; diff --git a/examples/javascript/ublox6.js b/examples/javascript/ublox6.js index d68640a1..50bad1a2 100644 --- a/examples/javascript/ublox6.js +++ b/examples/javascript/ublox6.js @@ -66,7 +66,7 @@ function getGPSInfo() process.stdout.write(GPSData) } - if (rv < 0) // some sort of read error occured + if (rv < 0) // some sort of read error occurred { console.log("Port read error."); process.exit(0); diff --git a/examples/python/hmtrp.py b/examples/python/hmtrp.py index dd2298f0..9b8fe195 100644 --- a/examples/python/hmtrp.py +++ b/examples/python/hmtrp.py @@ -123,7 +123,7 @@ else: resultStr += radioBuffer.__getitem__(x) print "Received:", resultStr - if (rv < 0): # some sort of read error occured + if (rv < 0): # some sort of read error occurred print "Port read error." sys.exit(0) myCounter += 1 diff --git a/examples/python/ublox6.py b/examples/python/ublox6.py index bb98d2bf..c2e03226 100644 --- a/examples/python/ublox6.py +++ b/examples/python/ublox6.py @@ -73,7 +73,7 @@ def getGPSInfo(): GPSData += nmeaBuffer.__getitem__(x) sys.stdout.write(GPSData) - if (rv < 0): # some sort of read error occured + if (rv < 0): # some sort of read error occurred print "Port read error." sys.exit(0) diff --git a/src/adxrs610/adxrs610.h b/src/adxrs610/adxrs610.h index 07bc3897..ac8cdb03 100644 --- a/src/adxrs610/adxrs610.h +++ b/src/adxrs610/adxrs610.h @@ -113,7 +113,7 @@ namespace upm { /** * Set the zero point. This is the point measured and averaged * when the sensor is not moving. It is set at construction time - * (averaged over a number of samples), but can be overriden here. + * (averaged over a number of samples), but can be overridden here. * * @param zeroPoint The averaged zero point of the sensor at rest */ diff --git a/src/apa102/apa102.h b/src/apa102/apa102.h index d281a88a..34033e8b 100644 --- a/src/apa102/apa102.h +++ b/src/apa102/apa102.h @@ -62,7 +62,7 @@ class APA102 * * @param ledCount Number of APA102 leds in the strip * @param spiBus SPI Bus number - * @param batchMode (optional) Immediatly write to SPI (false, default) or wait for a pushState + * @param batchMode (optional) Immediately write to SPI (false, default) or wait for a pushState * call (true) * @param csn (optional) Chip Select Pin */ diff --git a/src/h3lis331dl/h3lis331dl.h b/src/h3lis331dl/h3lis331dl.h index 90b8a022..775ec02f 100644 --- a/src/h3lis331dl/h3lis331dl.h +++ b/src/h3lis331dl/h3lis331dl.h @@ -522,7 +522,7 @@ namespace upm { /** * Sets up the interrupt 1 threshold register * - * @param val Threshhold to set + * @param val Threshold to set * @return True if successful */ bool setInterrupt1Threshold(uint8_t val); @@ -530,7 +530,7 @@ namespace upm { /** * Sets up the interrupt 2 threshold register * - * @param val Threshhold to set + * @param val Threshold to set * @return True if successful */ bool setInterrupt2Threshold(uint8_t val); diff --git a/src/mpu9150/mpu60x0.h b/src/mpu9150/mpu60x0.h index 1737a697..23f292f5 100644 --- a/src/mpu9150/mpu60x0.h +++ b/src/mpu9150/mpu60x0.h @@ -851,7 +851,7 @@ namespace upm { /** * enable I2C Bypass. Enabling this feature allows devices on the - * MPU60X0 auxillary I2C bus to be visible on the MCU's I2C bus. + * MPU60X0 auxiliary I2C bus to be visible on the MCU's I2C bus. * * @param enable true to I2C bypass * @return true if successful, false otherwise diff --git a/src/nlgpio16/nlgpio16.h b/src/nlgpio16/nlgpio16.h index 4070690e..fa65276f 100644 --- a/src/nlgpio16/nlgpio16.h +++ b/src/nlgpio16/nlgpio16.h @@ -177,8 +177,8 @@ namespace upm { /** * Set the driection mode (input or output) for all gpios enabled - * by gpioSetIOMask(). A 0 in a given bit postion (LSB = gpio0) - * configures the gpio as an ouput, and a 1 bit configures the + * by gpioSetIOMask(). A 0 in a given bit position (LSB = gpio0) + * configures the gpio as an output, and a 1 bit configures the * gpio as an input. Only the gpios enabled by gpioSetMask() are * affected by this call. * @@ -211,7 +211,7 @@ namespace upm { /** * Read the raw analog input value present at the given gpio and - * return the coresponding voltage value at the pin. The gpio is + * return the corresponding voltage value at the pin. The gpio is * switched to analog input mode by this call, regardless of any * previous mode. The returned value will be a number between * 0.0-3.3, depending on the voltage present at the pin. Only the diff --git a/src/nrf8001/hal_aci_tl.cpp b/src/nrf8001/hal_aci_tl.cpp index 9d36a8e2..2610baea 100644 --- a/src/nrf8001/hal_aci_tl.cpp +++ b/src/nrf8001/hal_aci_tl.cpp @@ -371,17 +371,17 @@ void hal_aci_tl_init(aci_pins_t *a_pins, bool debug) error = mraa_gpio_dir (a_pins->m_rdy_ctx, MRAA_GPIO_IN); if (error != MRAA_SUCCESS) { - printf ("[ERROR] GPIO failed to initilize \n"); + printf ("[ERROR] GPIO failed to initialize \n"); } error = mraa_gpio_dir (a_pins->m_req_ctx, MRAA_GPIO_OUT); if (error != MRAA_SUCCESS) { - printf ("[ERROR] GPIO failed to initilize \n"); + printf ("[ERROR] GPIO failed to initialize \n"); } error = mraa_gpio_dir (a_pins->m_rst_ctx, MRAA_GPIO_OUT); if (error != MRAA_SUCCESS) { - printf ("[ERROR] GPIO failed to initilize \n"); + printf ("[ERROR] GPIO failed to initialize \n"); } if (UNUSED != a_pins->active_pin) { diff --git a/src/ozw/ozw.h b/src/ozw/ozw.h index e4f4152e..d76fdcd0 100644 --- a/src/ozw/ozw.h +++ b/src/ozw/ozw.h @@ -398,7 +398,7 @@ namespace upm { * library. Most modern devices are never polled, rather they are * configured to report changing values to the controller on their * own at device specific intervals or when appropriate events - * (depending the device) have occured. + * (depending the device) have occurred. * * @param nodeId The node ID * @param index The value index (see dumpNodes()) of the value to query. diff --git a/src/pn532/pn532.cxx b/src/pn532/pn532.cxx index 2ac512d2..efb5b794 100644 --- a/src/pn532/pn532.cxx +++ b/src/pn532/pn532.cxx @@ -192,8 +192,8 @@ uint32_t PN532::getFirmwareVersion() @param cmdlen The size of the command in bytes @param timeout timeout before giving up - @returns 1 if everything is OK, 0 if timeout occured before an - ACK was recieved + @returns 1 if everything is OK, 0 if timeout occurred before an + ACK was received */ /**************************************************************************/ // default timeout of one second diff --git a/src/pn532/pn532.h b/src/pn532/pn532.h index 206eb5b0..0ac7b3ab 100644 --- a/src/pn532/pn532.h +++ b/src/pn532/pn532.h @@ -232,8 +232,8 @@ namespace upm { * @param cmdlen the size of the command in bytes * @param timeout timeout before giving up (in ms) * - * @return true if everything is OK, false if timeout occured - * before an ACK was recieved + * @return true if everything is OK, false if timeout occurred + * before an ACK was received */ bool sendCommandCheckAck(uint8_t *cmd, uint8_t cmdlen, uint16_t timeout=1000); diff --git a/src/si1132/si1132.cxx b/src/si1132/si1132.cxx index c1f03e29..2228cf33 100644 --- a/src/si1132/si1132.cxx +++ b/src/si1132/si1132.cxx @@ -189,7 +189,7 @@ mraa::Result SI1132::runCommand(uint8_t command) } if (response == 0) { status = mraa::ERROR_UNSPECIFIED; - fprintf(stderr, "Comand %d failed\n", command); + fprintf(stderr, "Command %d failed\n", command); } return status; } diff --git a/src/smartdrive/smartdrive.cxx b/src/smartdrive/smartdrive.cxx index 1df1fec3..23a7570b 100644 --- a/src/smartdrive/smartdrive.cxx +++ b/src/smartdrive/smartdrive.cxx @@ -397,7 +397,7 @@ SmartDrive::GetMotorStatus(int motor_id) { if (motor_id == SmartDrive_Motor_ID_2) status = readByte(SmartDrive_STATUS_M1); if (motor_id == SmartDrive_Motor_ID_BOTH) { - std::cout << "Please specifiy which motor's status you want to fetch !" << std::endl; + std::cout << "Please specify which motor's status you want to fetch !" << std::endl; } return status; } @@ -425,6 +425,6 @@ SmartDrive::PrintMotorStatus(int motor_id) { std::cout << "Motor " << motor_id+1 << " is " << ((is_stalled == 0) ? "NOT" : "") << " stalled" << std::endl; } else { - std::cout << "Please specifiy which motor's status you want to fetch !" << std::endl; + std::cout << "Please specify which motor's status you want to fetch !" << std::endl; } } diff --git a/src/sx1276/sx1276.h b/src/sx1276/sx1276.h index e23a3953..6ef88cf4 100644 --- a/src/sx1276/sx1276.h +++ b/src/sx1276/sx1276.h @@ -1740,7 +1740,7 @@ namespace upm { * FSK : N/A ( set to 0 ) * LoRa: timeout in symbols * @param fixLen Fixed length packets [false: variable, true: fixed] - * @param payloadLen Sets payload length when fixed lenght is used + * @param payloadLen Sets payload length when fixed length is used * @param crcOn Enables/Disables the CRC [false: OFF, true: ON] * @param FreqHopOn Enables disables the intra-packet frequency hopping * FSK : N/A ( set to 0 )