mirror of
https://github.com/esphome/esphome.git
synced 2025-09-12 16:22:22 +01:00
Improv - BLE WiFi provisioning (#1807)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
@@ -21,8 +21,14 @@
|
||||
#define ALWAYS_INLINE __attribute__((always_inline))
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
#define xSemaphoreWait(semaphore, wait_time) \
|
||||
xSemaphoreTake(semaphore, wait_time); \
|
||||
xSemaphoreGive(semaphore);
|
||||
|
||||
namespace esphome {
|
||||
|
||||
static const uint32_t SEMAPHORE_MAX_DELAY = 4294967295UL;
|
||||
|
||||
/// The characters that are allowed in a hostname.
|
||||
extern const char *HOSTNAME_CHARACTER_ALLOWLIST;
|
||||
|
||||
@@ -318,8 +324,6 @@ template<typename T> class Parented {
|
||||
|
||||
uint32_t fnv1_hash(const std::string &str);
|
||||
|
||||
} // namespace esphome
|
||||
|
||||
template<typename T> T *new_buffer(size_t length) {
|
||||
T *buffer;
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
@@ -333,4 +337,6 @@ template<typename T> T *new_buffer(size_t length) {
|
||||
#endif
|
||||
|
||||
return buffer;
|
||||
}
|
||||
|
||||
} // namespace esphome
|
||||
|
Reference in New Issue
Block a user