Add diagnostics

pull/165/head
iwoodsawyer 2021-04-27 12:49:57 -07:00
parent ff73a5cb45
commit 984b202163
1 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <bcm2835.h>
#define BIT(x) 1 << (x)
@ -452,12 +453,12 @@ void ESC_init (const esc_cfg_t * config)
}
else
{
//printf("bcm2835_spi_begin failed. Are you running as root ?\n");
printf("bcm2835_spi_begin failed. Are you running as root ?\n");
bcm2835_close();
}
}
else
{
//printf("bcm2835_init failed. Are you running as root ?\n");
printf("bcm2835_init failed. Are you running as root ?\n");
}
}