RPi: Log refactor

This commit is contained in:
Marcelo Aquino
2016-10-18 16:55:47 -02:00
parent 75aad5de35
commit 2be804a1ef
13 changed files with 196 additions and 80 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ uint8_t SPIClass::is_initialized() {
void SPIClass::begin() {
if (!initialized) {
if (!bcm2835_spi_begin()) {
mys_log(LOG_ERR, "You need to be root to use SPI.\n");
logError("You need root privilege to use SPI.\n");
exit(1);
}
}