summaryrefslogtreecommitdiff
path: root/platformio/temphum/src/util.h
blob: e0780d80d969299a4d215ef8abc31de6cc009669 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

namespace homekit {

inline size_t otaGetMaxUpdateSize() {
    return (ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000;
}

inline void restart() {
    ESP.restart();
}

}