dashboard/src/main.cpp

28 lines
538 B
C++
Raw Normal View History

2021-08-23 18:39:09 +00:00
///////////////////////////////////////////////////////////////////////////////
// Tyler Perkins
// 8-23-21
// Entry point
//
#include "config.hpp"
2021-08-23 19:44:02 +00:00
#include "handler/handler.hpp"
2021-09-16 23:03:12 +00:00
#include "board.hpp"
2021-08-23 18:39:09 +00:00
2021-09-18 03:39:14 +00:00
#include <iostream>
2021-08-23 18:39:09 +00:00
int main(int argc, char** argv){
2021-08-23 19:44:02 +00:00
dashboard::handlers::setHandlers();
2021-08-23 18:39:09 +00:00
2021-09-18 03:39:14 +00:00
dashboard::board _board(false);
2021-09-16 23:03:12 +00:00
2021-09-18 03:39:14 +00:00
if(_board.init() != 0){
2022-01-28 22:33:24 +00:00
std::cerr << "Due to errors, " << argv[0]
2021-09-18 03:39:14 +00:00
<< " was unable to start, quitting!" << std::endl;
2021-09-19 22:23:02 +00:00
return -1;
2021-09-18 03:39:14 +00:00
}
2021-09-16 23:11:58 +00:00
2021-09-18 03:39:14 +00:00
_board.start();
2021-08-23 18:39:09 +00:00
return 0;
}