1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-20 21:01:25 +03: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

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