mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Additonal stamp.h fixes
This commit is contained in:
parent
ee95c973e9
commit
32d0e3890a
5 changed files with 6 additions and 12 deletions
|
@ -1789,12 +1789,6 @@ stamp.h:
|
|||
@echo "#define TIME \"`date +%H:%M:%S | tr -d '\r\n'`\"" >> stamp.h
|
||||
@echo "#define VERSION \"$(VERSION)\"" >> stamp.h
|
||||
|
||||
opentx-stamp:
|
||||
@echo "#define DATE_STR \"`date +%Y-%m-%d`\"" > stamp-opentx.txt
|
||||
@echo "#define TIME_STR \"`date +%H:%M:%S`\"" >> stamp-opentx.txt
|
||||
@echo "#define VERS_STR \"$(VERSION)\"" >> stamp-opentx.txt
|
||||
@cat stamp-opentx.txt
|
||||
|
||||
translations/en.h: translations/en.h.txt
|
||||
@echo
|
||||
@echo "Create English language specific header files"
|
||||
|
|
|
@ -97,7 +97,7 @@ const struct TraceElement * getTraceElement(uint16_t idx)
|
|||
|
||||
void dumpTraceBuffer()
|
||||
{
|
||||
TRACE("Dump of Trace Buffer (" VERS_STR " " DATE_STR " " TIME_STR "):");
|
||||
TRACE("Dump of Trace Buffer (" VERSION " " DATE " " TIME "):");
|
||||
TRACE("# Time Event Data");
|
||||
for(int n = 0; n < TRACE_BUFFER_LEN; ++n) {
|
||||
struct gtm tp;
|
||||
|
|
|
@ -175,7 +175,7 @@ bool menuTraceBuffer(evt_t event)
|
|||
break;
|
||||
}
|
||||
|
||||
SIMPLE_SUBMENU("Trace Buffer " VERS_STR, TRACE_BUFFER_LEN);
|
||||
SIMPLE_SUBMENU("Trace Buffer " VERSION, TRACE_BUFFER_LEN);
|
||||
|
||||
/* RTC time */
|
||||
struct gtm t;
|
||||
|
|
|
@ -215,7 +215,7 @@ void menuTraceBuffer(uint8_t event)
|
|||
break;
|
||||
}
|
||||
|
||||
SIMPLE_SUBMENU("Trace Buffer " VERS_STR, TRACE_BUFFER_LEN);
|
||||
SIMPLE_SUBMENU("Trace Buffer " VERSION, TRACE_BUFFER_LEN);
|
||||
/* RTC time */
|
||||
struct gtm t;
|
||||
gettime(&t);
|
||||
|
|
|
@ -62,11 +62,11 @@
|
|||
#include "FatFs/ff.h"
|
||||
#include "FatFs/diskio.h"
|
||||
#include "translations/en.h"
|
||||
#include "stamp-opentx.h"
|
||||
#include "stamp.h"
|
||||
#include "strhelpers.h"
|
||||
|
||||
#if defined(PCBTARANIS)
|
||||
#define BOOTLOADER_TITLE " Taranis BootLoader - " VERS_STR
|
||||
#define BOOTLOADER_TITLE " Taranis BootLoader - " VERSION
|
||||
#if defined(REV9E)
|
||||
#define BOOT_KEY_UP KEY_MINUS
|
||||
#define BOOT_KEY_DOWN KEY_PLUS
|
||||
|
@ -80,7 +80,7 @@
|
|||
#define BOOT_KEY_EXIT KEY_EXIT
|
||||
#define DISPLAY_CHAR_WIDTH 35
|
||||
#elif defined(PCBSKY9X)
|
||||
#define BOOTLOADER_TITLE "Sky9x Boot Loader - " VERS_STR
|
||||
#define BOOTLOADER_TITLE "Sky9x Boot Loader - " VERSION
|
||||
#endif
|
||||
|
||||
const uint8_t bootloaderVersion[] __attribute__ ((section(".version"), used)) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue