Fix libpm3: make sure mainret is defined. Thanks @bettse

This commit is contained in:
Philippe Teuwen 2022-01-17 22:25:07 +01:00
parent 795e604ddb
commit 21f556149b

View file

@ -37,6 +37,8 @@
#include "flash.h"
#include "preferences.h"
static int mainret = PM3_ESOFT;
#ifndef LIBPM3
#define BANNERMSG1 ""
#define BANNERMSG2 " [ Iceman :snowflake: ]"
@ -44,8 +46,6 @@
typedef enum LogoMode { UTF8, ANSI, ASCII } LogoMode;
static int mainret = PM3_ESOFT;
static void showBanner_logo(LogoMode mode) {
switch (mode) {
case UTF8: {