Added existing fastclock implementation.
Added DjDebug, DjConfig.
This commit is contained in:
25
src/DjFastclockScanner.h
Normal file
25
src/DjFastclockScanner.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/* DjFastclockScanner -- collect fastclock server names
|
||||
*/
|
||||
|
||||
#ifndef _DjFastclockScannerIncluded
|
||||
#define _DjFastclockScannerIncluded true
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "DjDebug.h"
|
||||
|
||||
#define MAX_CLOCKS 10
|
||||
|
||||
class FastclockScanner {
|
||||
public:
|
||||
FastclockScanner(Debug& _debug):debug(_debug) {};
|
||||
void addClock(String clockName);
|
||||
void addClock(const char * clockName);
|
||||
String *getKnownClocks() { return knownClocks; }
|
||||
int getNumberOfKnownClocks() { return numberOfKnownClocks; }
|
||||
private:
|
||||
Debug& debug;
|
||||
static String knownClocks[];
|
||||
static int numberOfKnownClocks;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user