Skip to content

Commit

Permalink
Update main.cpp to look more like the one in rosflight_firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
avtoku authored Jul 1, 2024
1 parent 553e706 commit 1bf8b0d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
******************************************************************************
**/

#include <Varmint.h>
#include <mavlink.h>
#include <rosflight.h>

extern rosflight_firmware::Board &board;

#ifdef __cplusplus
extern "C"
Expand All @@ -48,8 +51,8 @@ extern "C"

int main(void)
{
extern rosflight_firmware::Board *board;
board->init_board();
extern rosflight_firmware::Board &board;
board.init_board();

return 0;
}

0 comments on commit 1bf8b0d

Please sign in to comment.