From 583dafb576ae1ffbcbd8de1d050120564fbe9a68 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 25 Nov 2013 23:08:40 +0100 Subject: [PATCH] Fixed return value of Bridge::get(..) (returning 0 also with valid data len >0) --- build/shared/revisions.txt | 1 + libraries/Bridge/src/Bridge.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 3a669698a..bf9f39443 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -22,6 +22,7 @@ We suggest to delay the adoption of the new format until a stable 1.5.x is relea * avr: Fixed timeout in Bridge::transfer() * sam: Fixed SPI initialization (when using extended API and multiple CS) * avr: Fixed behavior of EthernetClient::flush() +* avr: Fixed return value of Bridge::get(..) (returning 0 with valid data len >0) [core] * sam: Fixed wrong initialization for ADC timings (analogRead speed Arduino DUE improved by a factor x10) diff --git a/libraries/Bridge/src/Bridge.h b/libraries/Bridge/src/Bridge.h index 36cf26cb0..954571a62 100644 --- a/libraries/Bridge/src/Bridge.h +++ b/libraries/Bridge/src/Bridge.h @@ -36,7 +36,7 @@ class BridgeClass { unsigned int get(const char *key, uint8_t *buff, unsigned int size); unsigned int get(const char *key, char *value, unsigned int maxlen) { - get(key, reinterpret_cast(value), maxlen); + return get(key, reinterpret_cast(value), maxlen); } // Trasnfer a frame (with error correction and response)