Skip to content

Commit 583dafb

Browse files
committed
Fixed return value of Bridge::get(..) (returning 0 also with valid data len >0)
1 parent fe6295e commit 583dafb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ We suggest to delay the adoption of the new format until a stable 1.5.x is relea
2222
* avr: Fixed timeout in Bridge::transfer()
2323
* sam: Fixed SPI initialization (when using extended API and multiple CS)
2424
* avr: Fixed behavior of EthernetClient::flush()
25+
* avr: Fixed return value of Bridge::get(..) (returning 0 with valid data len >0)
2526

2627
[core]
2728
* sam: Fixed wrong initialization for ADC timings (analogRead speed Arduino DUE improved by a factor x10)

Diff for: libraries/Bridge/src/Bridge.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class BridgeClass {
3636
unsigned int get(const char *key, uint8_t *buff, unsigned int size);
3737
unsigned int get(const char *key, char *value, unsigned int maxlen)
3838
{
39-
get(key, reinterpret_cast<uint8_t *>(value), maxlen);
39+
return get(key, reinterpret_cast<uint8_t *>(value), maxlen);
4040
}
4141

4242
// Trasnfer a frame (with error correction and response)

0 commit comments

Comments
 (0)