Use mysensors built-in nrf24 library for RPi
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
#include "log.h"
|
||||
|
||||
static const char* CONFIG_FILE = MY_LINUX_CONFIG_FILE;
|
||||
@@ -124,6 +125,11 @@ void hwWriteConfig(int adr, uint8_t value)
|
||||
}
|
||||
}
|
||||
|
||||
void hwRandomNumberInit()
|
||||
{
|
||||
randomSeed(time(NULL));
|
||||
}
|
||||
|
||||
// Not supported!
|
||||
int8_t hwSleep(unsigned long ms)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user