Skip to content

Commit

Permalink
added killer of original controller
Browse files Browse the repository at this point in the history
  • Loading branch information
martind committed Apr 29, 2015
1 parent 5036301 commit e2582fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onboard/test_navdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ ssize_t full_read(int fd, uint8_t *buf, size_t count)

int main()
{
// First we try to kill the program.elf and its respawner if it is running (done here because initializes first)
system("killall -9 program.elf.respawner.sh; killall -9 program.elf");

uint8_t buf[256];

int fd = init();
Expand Down

0 comments on commit e2582fb

Please sign in to comment.