raspberry pi fixes

This commit is contained in:
Tristan Krause 2019-06-28 16:10:22 +02:00
parent e016a52459
commit ee76b25ba3
5 changed files with 14 additions and 3 deletions

View file

@ -26,7 +26,7 @@ OUT_PLOTTY = $(PATH_BIN)/plotty
OUT_DOC = ../../docs/html
# compiling & linking parameters
CFLAGS = -std=c++17 -O3 -Wall -Wextra -fPIC
CFLAGS = -std=c++14 -O3 -Wall -Wextra -fPIC
LDFLAGS_DRV = -lcurses -lpthread
LDFLAGS_CLI = $(LDFLAGS_DRV) -lb15fdrv

View file

@ -0,0 +1,4 @@
#ifndef COMMIT_HASH_H
#define COMMIT_HASH_H
const char COMMIT_HASH[] = "e016a52459314099549511bb1fed60b3e8f58fa3";
#endif // COMMIT_HASH_H

View file

@ -78,7 +78,14 @@ void ViewMonitor::worker()
{
try
{
#ifdef __arm__
// Raspberry Pi is much slower
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
#else
// normal PC is faster
std::this_thread::sleep_for(std::chrono::milliseconds(100));
#endif
uint8_t be0 = drv.digitalRead0();
uint8_t be1 = drv.digitalRead1();