UARTService::write() should return a size_t

This commit is contained in:
Rohit Grover 2015-03-27 08:14:04 +00:00
parent c7a2b9bb93
commit c936446c42

View file

@ -98,7 +98,7 @@ public:
* @param length Amount of characters to be appended.
* @return Amount of characters appended to the rxCharacteristic.
*/
ssize_t write(const void *_buffer, size_t length) {
size_t write(const void *_buffer, size_t length) {
size_t origLength = length;
const uint8_t *buffer = static_cast<const uint8_t *>(_buffer);