jsonplatform.c: fix potential segfault at pin label processing
Also update docs to reflect the max label length. Fixes #738. Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
30bbb88685
commit
d544e3c2f6
@@ -41,7 +41,7 @@ The number of json objects in layout should be equal to the pin_count.
|
||||
|
||||
|Key |Type |Required |Description |
|
||||
|-----------|-------|-----------|-----------------------------------------------|
|
||||
|label |string |yes | The label used to describe the pin |
|
||||
|label |string |yes | The label used to describe the pin (11 characters max) |
|
||||
|invalid |boolean|no | Sets the labeled pin as an invalid pin |
|
||||
|
||||
### GPIO
|
||||
|
||||
Reference in New Issue
Block a user