1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-30 19:52:13 +01:00

Fixed return value of Bridge::get(..) (returning 0 also with valid data len >0)

This commit is contained in:
Cristian Maglie 2013-11-25 23:08:40 +01:00
parent fe6295e124
commit 583dafb576
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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<uint8_t *>(value), maxlen);
return get(key, reinterpret_cast<uint8_t *>(value), maxlen);
}
// Trasnfer a frame (with error correction and response)