versionsprüfung

This commit is contained in:
Tristan Krause 2019-06-28 14:21:10 +02:00
parent ae6920cdf9
commit d7179914ad
68 changed files with 189 additions and 89 deletions

View file

@ -55,7 +55,7 @@ upload: b15f checkfuses
commit_hash:
@echo "Updating commit hash..."
@echo -e "#ifndef COMMIT_HASH_H\n#define COMMIT_HASH_H\nconstexpr char* COMMIT_HASH = \"`git log --pretty=format:'%H' -n 1`\";\n#endif // COMMIT_HASH_H" > commit_hash.h
@bash -c 'echo -e "#ifndef COMMIT_HASH_H\n#define COMMIT_HASH_H\nconst char COMMIT_HASH[] = \"`git log --pretty=format:'%H' -n 1`\";\n#endif // COMMIT_HASH_H" > commit_hash.h'
.cpp.o:
$(COMPILE) -c $< -o $@

View file

@ -1,6 +1,8 @@
#ifndef BOARDINFO_H
#define BOARDINFO_H
#include "commit_hash.h"
const char DATE[] = __DATE__;
const char TIME[] = __TIME__;
const char FSRC[] = __FILE__;

View file

@ -1,4 +1,4 @@
#ifndef COMMIT_HASH_H
#define COMMIT_HASH_H
constexpr char* COMMIT_HASH = "2e29c6fcb5debd952e967adc773d396b7f645450";
const char COMMIT_HASH[] = "ae6920cdf9fed20780ed671c86150b00283c67b6";
#endif // COMMIT_HASH_H

View file

@ -125,10 +125,11 @@ void rqTestConnection()
void rqBoardInfo()
{
usart.initTX();
usart.writeByte(3); // Anzahl an Strings
usart.writeByte(4); // Anzahl an Strings
usart.writeStr(DATE, sizeof(DATE));
usart.writeStr(TIME, sizeof(TIME));
usart.writeStr(FSRC, sizeof(FSRC));
usart.writeStr(COMMIT_HASH, sizeof(COMMIT_HASH));
usart.writeByte(USART::MSG_OK);
usart.flush();
}