1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

revise error messages and fixed encoding

This commit is contained in:
Zakaria Kasmi 2013-09-25 13:24:14 +02:00 committed by Oleg Hahm
parent 9f2e7c80b8
commit 4fb64f8e91
7 changed files with 11 additions and 15 deletions

View File

@ -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 <zkasmi@inf.fu-berlin.de>
* @author Marco Ziegert <ziegert@inf.fu-berlin.de>
* @author Benjamin Aschenbrenner

View File

@ -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 <zkasmi@inf.fu-berlin.de>
* @version $Revision: 3859 $
*

View File

@ -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 <zkasmi@inf.fu-berlin.de>
* @version $Revision: 3857 $
*

View File

@ -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 <zkasmi@inf.fu-berlin.de>
* @version $Revision: 3857 $
*

View File

@ -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 <zkasmi@inf.fu-berlin.de>
* @version $Revision: 3855 $
*

View File

@ -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 <zkasmi@inf.fu-berlin.de>
* @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;
}

View File

@ -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 <zkasmi@inf.fu-berlin.de>
* @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];