Rework UI to use newly created version handling
This commit is contained in:
parent
df70238b36
commit
34c1c3db4e
@ -18,6 +18,7 @@
|
|||||||
* If not, see <http://www.gnu.org/licenses/>.
|
* If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "reflow-controller/version.h"
|
||||||
#include <reflow-controller/ui/gui.h>
|
#include <reflow-controller/ui/gui.h>
|
||||||
#include <reflow-controller/ui/gui-config.h>
|
#include <reflow-controller/ui/gui-config.h>
|
||||||
#include <reflow-controller/ui/menu.h>
|
#include <reflow-controller/ui/menu.h>
|
||||||
@ -167,9 +168,9 @@ static void gui_menu_about(struct lcd_menu *menu, enum menu_entry_func_entry ent
|
|||||||
break;
|
break;
|
||||||
last_page = 1;
|
last_page = 1;
|
||||||
menu_lcd_output(menu, 0, "Version Number:");
|
menu_lcd_output(menu, 0, "Version Number:");
|
||||||
menu_lcd_outputf(menu, 1, "%.*s", LCD_CHAR_WIDTH, xstr(GIT_VER));
|
menu_lcd_outputf(menu, 1, "%.*s", LCD_CHAR_WIDTH, version_git_version_string);
|
||||||
if (strlen(xstr(GIT_VER)) > LCD_CHAR_WIDTH) {
|
if (strlen(version_git_version_string) > LCD_CHAR_WIDTH) {
|
||||||
menu_lcd_outputf(menu, 2, "%s", &xstr(GIT_VER)[LCD_CHAR_WIDTH]);
|
menu_lcd_outputf(menu, 2, "%s", &version_git_version_string[LCD_CHAR_WIDTH]);
|
||||||
}
|
}
|
||||||
#ifdef DEBUGBUILD
|
#ifdef DEBUGBUILD
|
||||||
menu_lcd_output(menu, 3, "Page 2/5 [DEBUG]");
|
menu_lcd_output(menu, 3, "Page 2/5 [DEBUG]");
|
||||||
|
@ -49,13 +49,10 @@
|
|||||||
#include <reflow-controller/ui/gui.h>
|
#include <reflow-controller/ui/gui.h>
|
||||||
#include <reflow-controller/ui/shell-uart.h>
|
#include <reflow-controller/ui/shell-uart.h>
|
||||||
#include <reflow-controller/safety/flash-crc.h>
|
#include <reflow-controller/safety/flash-crc.h>
|
||||||
|
#include <reflow-controller/version.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#ifndef GIT_VER
|
|
||||||
#define GIT_VER "VERSION NOT SET"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static shellmatta_instance_t shell;
|
static shellmatta_instance_t shell;
|
||||||
static char shell_buffer[512];
|
static char shell_buffer[512];
|
||||||
static char IN_SECTION(.ccm.bss) history_buffer[512];
|
static char IN_SECTION(.ccm.bss) history_buffer[512];
|
||||||
@ -81,8 +78,9 @@ static shellmatta_retCode_t shell_cmd_ver(const shellmatta_handle_t handle,
|
|||||||
stm_unique_id_get(&high_id, &mid_id, &low_id);
|
stm_unique_id_get(&high_id, &mid_id, &low_id);
|
||||||
stm_dev_rev_id_get(&stm_dev_id, &stm_rev_id);
|
stm_dev_rev_id_get(&stm_dev_id, &stm_rev_id);
|
||||||
|
|
||||||
shellmatta_printf(handle, "Reflow Oven Controller Firmware " xstr(GIT_VER) "\r\n"
|
shellmatta_printf(handle, "Reflow Oven Controller Firmware %s\r\n"
|
||||||
"Compiled: " __DATE__ " at " __TIME__ "\r\n");
|
"Compiled: %s at %s\r\n",
|
||||||
|
version_git_version_string, version_compile_date, version_compile_time);
|
||||||
shellmatta_printf(handle, "Serial: %08X-%08X-%08X\r\n", high_id, mid_id, low_id);
|
shellmatta_printf(handle, "Serial: %08X-%08X-%08X\r\n", high_id, mid_id, low_id);
|
||||||
|
|
||||||
pcb_rev = get_pcb_hardware_version();
|
pcb_rev = get_pcb_hardware_version();
|
||||||
|
Loading…
Reference in New Issue
Block a user