diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index 7ec74912..c293ae44 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -112,7 +112,8 @@ void print_chip_json(const sensors_chip_name *name) printf("\n }"); cnt++; } - printf("\n"); + if (cnt > 0) + printf("\n"); } static const char hyst_str[] = "hyst";