From 4fb64f8e91cc207b740b0fc3382523164abd625b Mon Sep 17 00:00:00 2001 From: Zakaria Kasmi Date: Wed, 25 Sep 2013 13:24:14 +0200 Subject: [PATCH] revise error messages and fixed encoding --- cpu/lpc2387/include/i2c.h | 2 +- drivers/include/lm75a-temp-sensor.h | 2 +- drivers/include/srf02-ultrasonic-sensor.h | 2 +- drivers/include/srf08-ultrasonic-sensor.h | 2 +- drivers/lm75a/lm75a-temp-sensor.c | 2 +- drivers/srf02/srf02-ultrasonic-sensor.c | 8 +++----- drivers/srf08/srf08-ultrasonic-sensor.c | 8 +++----- 7 files changed, 11 insertions(+), 15 deletions(-) diff --git a/cpu/lpc2387/include/i2c.h b/cpu/lpc2387/include/i2c.h index e5dcdde808..b2580d1057 100644 --- a/cpu/lpc2387/include/i2c.h +++ b/cpu/lpc2387/include/i2c.h @@ -19,7 +19,7 @@ * does not declare a handler, an appropriate interrupt is * automatically registered for the specific i2c-interface. * - * @author Freie Universität Berlin, Computer Systems & Telematics + * @author Freie Universität Berlin, Computer Systems & Telematics * @author Zakaria Kasmi * @author Marco Ziegert * @author Benjamin Aschenbrenner diff --git a/drivers/include/lm75a-temp-sensor.h b/drivers/include/lm75a-temp-sensor.h index 1aa4c7b8e4..6ce77ca611 100644 --- a/drivers/include/lm75a-temp-sensor.h +++ b/drivers/include/lm75a-temp-sensor.h @@ -16,7 +16,7 @@ * The connection between the LM75A and the MCU is based * on the I2C-interface. * - * @author Freie Universität Berlin, Computer Systems & Telematics + * @author Freie Universität Berlin, Computer Systems & Telematics * @author Zakaria Kasmi * @version $Revision: 3859 $ * diff --git a/drivers/include/srf02-ultrasonic-sensor.h b/drivers/include/srf02-ultrasonic-sensor.h index c503928fef..f27895a726 100644 --- a/drivers/include/srf02-ultrasonic-sensor.h +++ b/drivers/include/srf02-ultrasonic-sensor.h @@ -15,7 +15,7 @@ * The connection between the SRF02 and the MCU is based on * the i2c interface. * - * @author Freie Universität Berlin, Computer Systems & Telematics + * @author Freie Universität Berlin, Computer Systems & Telematics * @author Zakaria Kasmi * @version $Revision: 3857 $ * diff --git a/drivers/include/srf08-ultrasonic-sensor.h b/drivers/include/srf08-ultrasonic-sensor.h index fa94309bf4..8d78f46d9e 100644 --- a/drivers/include/srf08-ultrasonic-sensor.h +++ b/drivers/include/srf08-ultrasonic-sensor.h @@ -14,7 +14,7 @@ * The communication between the MCU and SRF08 is via the i2c * interface. * - * @author Freie Universität Berlin, Computer Systems & Telematics + * @author Freie Universität Berlin, Computer Systems & Telematics * @author Zakaria Kasmi * @version $Revision: 3857 $ * diff --git a/drivers/lm75a/lm75a-temp-sensor.c b/drivers/lm75a/lm75a-temp-sensor.c index a1f7a0cb04..cfc9a283e4 100644 --- a/drivers/lm75a/lm75a-temp-sensor.c +++ b/drivers/lm75a/lm75a-temp-sensor.c @@ -16,7 +16,7 @@ * The communication between the LM75A and the MCU is * based on the i2c interface. * - * @author Freie Universität Berlin, Computer Systems & Telematics + * @author Freie Universität Berlin, Computer Systems & Telematics * @author Zakaria Kasmi * @version $Revision: 3855 $ * diff --git a/drivers/srf02/srf02-ultrasonic-sensor.c b/drivers/srf02/srf02-ultrasonic-sensor.c index 1bc11ad21a..a2aecd0252 100644 --- a/drivers/srf02/srf02-ultrasonic-sensor.c +++ b/drivers/srf02/srf02-ultrasonic-sensor.c @@ -14,7 +14,7 @@ * The connection between the MCU and the SRF08 is based on the * i2c-interface. * - * @author Freie Universität Berlin, Computer Systems & Telematics + * @author Freie Universität Berlin, Computer Systems & Telematics * @author Zakaria Kasmi * @version $Revision: 3856 $ * @@ -73,8 +73,7 @@ uint32_t srf02_get_distance(uint8_t ranging_mode) SRF02_RANGE_HIGH_BYTE, rx_buff, reg_size); if (!status) { - puts("Read the the high echo byte from the i2c-interface is \ - failed"); + puts("Read the high echo byte from the i2c-interface is failed"); distance = UINT32_MAX; return distance; } @@ -85,8 +84,7 @@ uint32_t srf02_get_distance(uint8_t ranging_mode) SRF02_RANGE_LOW_BYTE, rx_buff, reg_size); if (!status) { - puts("Read the the low echo byte from the i2c-interface \ - is failed"); + puts("Read the low echo byte from the i2c-interface is failed"); distance = UINT32_MAX; return distance; } diff --git a/drivers/srf08/srf08-ultrasonic-sensor.c b/drivers/srf08/srf08-ultrasonic-sensor.c index b905f99efb..ab35e62421 100644 --- a/drivers/srf08/srf08-ultrasonic-sensor.c +++ b/drivers/srf08/srf08-ultrasonic-sensor.c @@ -13,7 +13,7 @@ * @internal * @brief Driver for the SRF08 ultrasonic ranger using the i2c interface. * - * @author Freie Universität Berlin, Computer Systems & Telematics + * @author Freie Universität Berlin, Computer Systems & Telematics * @author Zakaria Kasmi * @version $Revision: 3857 $ * @@ -107,8 +107,7 @@ int32_t srf08_get_distances(uint32_t *range_array, uint8_t ranging_mode) status = i2c_read(SRF08_I2C_INTERFACE, SRF08_DEFAULT_ADDR, register_location, rx_buff, reg_size); if (!status) { - puts("Read the the high echo byte from the i2c-interface is \ - failed"); + puts("Read the high echo byte from the i2c-interface is failed"); return -1; } range_high_byte = rx_buff[0]; @@ -116,8 +115,7 @@ int32_t srf08_get_distances(uint32_t *range_array, uint8_t ranging_mode) status = i2c_read(SRF08_I2C_INTERFACE, SRF08_DEFAULT_ADDR, register_location + 1, rx_buff, reg_size); if (!status) { - puts("Read the the low echo byte from the i2c-interface \ - is failed"); + puts("Read the low echo byte from the i2c-interface is failed"); return -1; } range_low_byte = rx_buff[0];