From 8be3f86e55b20ec5f18a3b45d3bd1413b212baa8 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Tue, 1 Nov 2022 07:55:04 +0100 Subject: [PATCH] Version updated --- NANOVNA_STM32_F303/board.h | 2 +- main.c | 26 +++++++++++++++++++++++++- sa_core.c | 7 +++---- ui.c | 5 ++++- 4 files changed, 33 insertions(+), 7 deletions(-) diff --git a/NANOVNA_STM32_F303/board.h b/NANOVNA_STM32_F303/board.h index cd44971..de76c85 100644 --- a/NANOVNA_STM32_F303/board.h +++ b/NANOVNA_STM32_F303/board.h @@ -25,7 +25,7 @@ * Board identifier. */ #define BOARD_NANOVNA_STM32_F303 -#define BOARD_NAME "tinySA4" +#define BOARD_NAME "tinySA ULTRA" #include //#include "..\nanovna.h" diff --git a/main.c b/main.c index ed571c2..aa776e6 100644 --- a/main.c +++ b/main.c @@ -1845,12 +1845,36 @@ VNA_SHELL_FUNCTION(cmd_test) const char TINYSA_VERSION[] = VERSION; +#ifdef TINYSA4 +typedef struct version_t { + const uint16_t min_adc; + const uint16_t max_adc; + const char *text; +} version_t; + +#define MAX_VERSION_TEXT 1 +const version_t hw_version_text[MAX_VERSION_TEXT] = +{ + { 160, 169, "V0.4.5.1"} +}; + +const char *get_hw_version_text(void) +{ + int v = adc1_single_read(0); + for (int i=0; i