added checks

This commit is contained in:
devfix 2019-07-08 13:49:43 +02:00
parent 6dff81fb75
commit 7b4a7b16f2
66 changed files with 180 additions and 174 deletions

View file

@ -72,6 +72,8 @@ void B15F::testConnection()
RQ_TEST,
dummy
};
assertRequestLength(rq, RQ_TEST);
usart.transmit(&rq[0], 0, sizeof(rq));
uint8_t aw[2];
@ -92,6 +94,8 @@ void B15F::testIntConv()
static_cast<uint8_t >(dummy & 0xFF),
static_cast<uint8_t >(dummy >> 8)
};
assertRequestLength(rq, RQ_INT_TEST);
usart.transmit(&rq[0], 0, sizeof(rq));
uint16_t aw;
@ -109,6 +113,8 @@ std::vector<std::string> B15F::getBoardInfo(void)
{
RQ_INFO
};
assertRequestLength(rq, RQ_INFO);
usart.transmit(&rq[0], 0, sizeof(rq));
uint8_t n;
@ -686,7 +692,7 @@ void B15F::init()
std::vector<std::string> info = getBoardInfo();
std::cout << PRE << "AVR Firmware Version: " << info[0] << " um " << info[1] << " Uhr (" << info[2] << ")"
<< std::endl;
// Überprüfe Version
std::string& avr_commit_hash = info[3];
if(avr_commit_hash.compare(COMMIT_HASH))

View file

@ -1,4 +1,4 @@
#ifndef COMMIT_HASH_H
#define COMMIT_HASH_H
const char COMMIT_HASH[] = "018bd1057deef81d8a44a808b7c68fb29abc3be6";
const char COMMIT_HASH[] = "6dff81fb75d39a4b063b6c8a1cb98a9aff0c3669";
#endif // COMMIT_HASH_H