From dc54df8233f021df883d245b7369148faddde0a6 Mon Sep 17 00:00:00 2001 From: Alex Kiselev Date: Tue, 3 Nov 2020 19:49:28 +0100 Subject: [PATCH] Supported devices output improved (help) --- main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 67e4c21..3b05bfa 100644 --- a/main.c +++ b/main.c @@ -20,8 +20,8 @@ #define COMPORT_LEN (32) #define FUSES_LEN (128) -#define SW_VER_NUMBER "0.4" -#define SW_VER_DATE "11.04.2020" +#define SW_VER_NUMBER "0.5" +#define SW_VER_DATE "03.11.2020" typedef struct { @@ -65,8 +65,7 @@ void help(void) printf(" List of supported devices:\n "); for (i = 1; i < DEVICES_GetNumber()+1; i++) { - printf(DEVICES_GetNameByNumber(i-1)); - printf("\t"); + printf("%-14s", DEVICES_GetNameByNumber(i-1)); if (i % 4 == 0 ? printf("\n "): printf("")); } printf("\n");