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:
parent
9f2e7c80b8
commit
4fb64f8e91
@ -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
|
||||
|
@ -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 $
|
||||
*
|
||||
|
@ -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 $
|
||||
*
|
||||
|
@ -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 $
|
||||
*
|
||||
|
@ -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 $
|
||||
*
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user