send user messages every 5 mins

pull/1/head
geeksville 2020-02-08 16:18:02 -08:00
rodzic c3c127d425
commit fb5b4af5be
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -53,6 +53,8 @@ until the phone pulls those packets. Ever so often power on bluetooth just so w
# Low priority
* if radio params change fundamentally, discard the nodedb
* discard very old nodedb records (> 1wk)
* using the genpartitions based table doesn't work on TTGO so for now I stay with my old memory map
* We let anyone scan for us (FIXME, perhaps only allow that until we are paired with a phone and configured)
* use two different env flags for ttgo vs lora32. https://docs.platformio.org/en/latest/ide/vscode.html#key-bindings

Wyświetl plik

@ -156,7 +156,7 @@ void MeshService::loop()
// FIXME, don't send user this often, but for now it is useful for testing
static uint32_t lastsend;
uint32_t now = millis();
if (now - lastsend > 20 * 1000)
if (now - lastsend > 5 * 60 * 1000)
{
lastsend = now;
sendOurOwner();