1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-15 06:53:07 +01:00

intermediate: prepare ota upload

This commit is contained in:
wellenvogel
2021-12-14 13:14:36 +01:00
parent b591c7ff12
commit 8b9fabe9e4
4 changed files with 148 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ const unsigned long HEAP_REPORT_TIME=2000; //set to 0 to disable heap reporting
#include "GwSynchronized.h"
#include "GwUserCode.h"
#include "GwStatistics.h"
#include "GwUpdate.h"
//NMEA message channels
#define N2K_CHANNEL_ID 0
@@ -169,6 +169,8 @@ bool checkPass(String hash){
return false;
}
GwUpdate updater(&logger,&webserver,checkPass);
void updateNMEACounter(int id,const char *msg,bool incoming,bool fail=false){
//we rely on the msg being long enough
char key[6];