correct board output now

This commit is contained in:
Robin Müller 2021-05-05 22:51:29 +02:00
parent 4b2d641a8a
commit 60a9358648

View File

@ -5,6 +5,14 @@
#include <iostream>
#ifdef RASPBERRY_PI
static const char* const BOARD_NAME = "Raspberry Pi";
#elif defined(BEAGLEBONEBLACK)
static const char* const BOARD_NAME = "Beaglebone Black";
#else
static const char* const BOARD_NAME = "Unknown Board";
#endif
/**
* @brief This is the main program and entry point for the Raspberry Pi.
* @return
@ -12,7 +20,7 @@
int main(void)
{
std::cout << "-- EIVE OBSW --" << std::endl;
std::cout << "-- Compiled for Linux (Raspberry Pi) --" << std::endl;
std::cout << "-- Compiled for Linux board " << BOARD_NAME << " --" << std::endl;
std::cout << "-- Software version " << SW_NAME << " v" << SW_VERSION << "."
<< SW_SUBVERSION << "." << SW_SUBSUBVERSION << " -- " << std::endl;
std::cout << "-- " << __DATE__ << " " << __TIME__ << " --" << std::endl;