Browse Source

Moving software-revision + adding it to webGUI

master
Torsten Stauder 4 years ago
parent
commit
024f639e1f
  1. 2
      src/Web.cpp
  2. 5
      src/main.cpp
  3. 4
      src/revision.h

2
src/Web.cpp

@ -21,6 +21,7 @@
#include "System.h" #include "System.h"
#include "Web.h" #include "Web.h"
#include "Wlan.h" #include "Wlan.h"
#include "revision.h"
#if (LANGUAGE == DE) #if (LANGUAGE == DE)
#include "HTMLaccesspoint_DE.h" #include "HTMLaccesspoint_DE.h"
@ -174,6 +175,7 @@ void webserverStart(void) {
snprintf(Log_Buffer, Log_BufferLength, "\n%s: %.2f V", (char *) FPSTR(currentVoltageMsg), Battery_GetVoltage()); snprintf(Log_Buffer, Log_BufferLength, "\n%s: %.2f V", (char *) FPSTR(currentVoltageMsg), Battery_GetVoltage());
info += (String) Log_Buffer; info += (String) Log_Buffer;
#endif #endif
info += "\n" + (String) softwareRevision;
request->send_P(200, "text/plain", info.c_str()); request->send_P(200, "text/plain", info.c_str());
}); });

5
src/main.cpp

@ -23,6 +23,7 @@
#include "System.h" #include "System.h"
#include "Web.h" #include "Web.h"
#include "Wlan.h" #include "Wlan.h"
#include "revision.h"
#ifdef PLAY_LAST_RFID_AFTER_REBOOT #ifdef PLAY_LAST_RFID_AFTER_REBOOT
bool recoverLastRfid = true; bool recoverLastRfid = true;
@ -183,8 +184,8 @@ void setup() {
Serial.println(F(" | _| \\__ \\ | |_) | | | | | | | | '_ \\ / _ \\")); Serial.println(F(" | _| \\__ \\ | |_) | | | | | | | | '_ \\ / _ \\"));
Serial.println(F(" | |___ ___) | | __/ | |_| | | | | | | | | (_) |")); Serial.println(F(" | |___ ___) | | __/ | |_| | | | | | | | | (_) |"));
Serial.println(F(" |_____| |____/ |_| \\__,_| |_| |_| |_| \\___/ ")); Serial.println(F(" |_____| |____/ |_| \\__,_| |_| |_| |_| \\___/ "));
Serial.println(F(" Rfid-controlled musicplayer\n"));
Serial.println(F(" Rev 20210714-1\n"));
Serial.print(F(" Rfid-controlled musicplayer\n "));
Serial.printf("%s\n\n", softwareRevision);
// print wake-up reason // print wake-up reason
printWakeUpReason(); printWakeUpReason();

4
src/revision.h

@ -0,0 +1,4 @@
#ifndef __REVISION_H__
#define __REVISION_H__
constexpr const char softwareRevision[] PROGMEM = "Software-revision: 20210715-1";
#endif
Loading…
Cancel
Save