Files
lm-sensors/prog
Nathan Rossi c567724339 sensors: Handle json trailing ',' when no features are listed
The json format requires that the last entry of a dictionary does not
have a trailing ','. To avoid generating invalid json output, check that
there are features to list before emitting the trailing ','.

This issue is present when a chip exists but all its sensors are
ignored:
{
    "example-device" : {
      "Adapter": "example adapter",
    }
}

The corrected output is:
{
    "example-device" : {
      "Adapter": "example adapter"
    }
}

Signed-off-by: Nathan Rossi <nathan.rossi@digi.com>
2021-01-12 01:56:25 +00:00
..
2018-10-05 17:59:30 +02:00
2018-09-01 19:38:55 +02:00
2020-11-14 13:16:08 +00:00
2018-09-01 19:38:55 +02:00
2018-09-01 19:38:55 +02:00