forked from btclock/btclock_v3
12 lines
No EOL
213 B
C++
12 lines
No EOL
213 B
C++
#include "utils.hpp"
|
|
|
|
int modulo(int x, int N)
|
|
{
|
|
return (x % N + N) % N;
|
|
}
|
|
|
|
String getMyHostname() {
|
|
byte mac[6];
|
|
WiFi.macAddress(mac);
|
|
return "btclock" + String(mac[4], 16) = String(mac[5], 16);
|
|
} |