forked from bblanchon/ArduinoJson
Show a link to the doc when user passes an unsupported input type
This commit is contained in:
@ -8,6 +8,7 @@ HEAD
|
||||
* Fix double lookup in `to<JsonVariant>()`
|
||||
* Fix double call to `size()` in `serializeMsgPack()`
|
||||
* Include `ARDUINOJSON_SLOT_OFFSET_SIZE` in the namespace name
|
||||
* Show a link to the documentation when user passes an unsupported input type
|
||||
|
||||
v6.21.2 (2023-04-12)
|
||||
-------
|
||||
|
@ -18,7 +18,9 @@ struct Reader {
|
||||
Reader(TSource& source) : source_(&source) {}
|
||||
|
||||
int read() {
|
||||
return source_->read(); // Error here? You passed an unsupported input type
|
||||
// clang-format off
|
||||
return source_->read(); // Error here? See https://arduinojson.org/v6/invalid-input/
|
||||
// clang-format on
|
||||
}
|
||||
|
||||
size_t readBytes(char* buffer, size_t length) {
|
||||
|
Reference in New Issue
Block a user