fixed some warnings

This commit is contained in:
Marcel Peterkau 2023-09-27 09:59:35 +02:00
parent f320fb1ca6
commit 3bb9bf694e
3 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ lib_deps =
[env:pcb_rev_1-3]
;build_type = debug
pcb_revision = 3
custom_pcb_revision = 3
build_flags =
${env.build_flags}
;-DFEATURE_ENABLE_WIFI_CLIENT
@ -56,7 +56,7 @@ build_flags =
-DFEATURE_ENABLE_WEBSOCKETS
-DFEATURE_ENABLE_CAN
-DCAN_DEBUG_MESSAGE
-DPCB_REV=${this.pcb_revision}
-DPCB_REV=${this.custom_pcb_revision}
board_build.ldscript = eagle.flash.4m1m.ld
@ -67,14 +67,14 @@ lib_deps =
[env:pcb_rev_1-2]
;build_type = debug
pcb_revision = 2
custom_pcb_revision = 2
build_flags =
${env.build_flags}
;-DFEATURE_ENABLE_WIFI_CLIENT
;-DFEATURE_ENABLE_TIMER
-DFEATURE_ENABLE_OLED
-DFEATURE_ENABLE_WEBSOCKETS
-DPCB_REV=${this.pcb_revision}
-DPCB_REV=${this.custom_pcb_revision}
board_build.ldscript = eagle.flash.4m1m.ld

View File

@ -1,3 +1,3 @@
Import("env")
env.Replace(PROGNAME="firmware_pcb_1.%s.fw" % env.GetProjectOption("pcb_revision"))
env.Replace(PROGNAME="firmware_pcb_1.%s.fw" % env.GetProjectOption("custom_pcb_revision"))

View File

@ -33,7 +33,7 @@ void Debug_Process()
CMD_OVERFLOW
} InputProcessed_t;
static int inputCnt = 0;
static unsigned int inputCnt = 0;
static char inputBuffer[32];
InputProcessed_t InputProcessed = IDLE;
@ -334,7 +334,7 @@ void Debug_printHelp()
{
char buff[64];
for (int i = sizeof(helpCmd) / 63; i < sizeof(helpCmd) / 63; i++)
for (unsigned int i = sizeof(helpCmd) / 63; i < sizeof(helpCmd) / 63; i++)
{
memcpy_P(buff, (helpCmd + (i * 63)), 63);
buff[63] = 0;