Skip to content

Commit b54f63e

Browse files
committed
Delegate now uses function declaration syntax in template type specification
1 parent b4d1a07 commit b54f63e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cores/esp8266/core_esp8266_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ extern "C" void __esp_delay(unsigned long ms) {
153153

154154
extern "C" void esp_delay(unsigned long ms) __attribute__((weak, alias("__esp_delay")));
155155

156-
using IsBlockedCB = Delegate<bool, void*>;
156+
using IsBlockedCB = Delegate<bool(void*), void*>;
157157

158158
void esp_delay(const uint32_t timeout_ms, const IsBlockedCB& blocked, const uint32_t intvl_ms) {
159159
const auto start = millis();

cores/esp8266/coredecls.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ uint32_t crc32 (const void* data, size_t length, uint32_t crc = 0xffffffff);
3131
#include <Delegate.h>
3232

3333
using BoolCB = Delegate<void(bool)>;
34-
using TrivialCB = Delegate<>;
34+
using TrivialCB = Delegate<void()>;
3535

3636
void settimeofday_cb (BoolCB&& cb);
3737
void settimeofday_cb (const BoolCB& cb);
3838
void settimeofday_cb (const TrivialCB& cb);
3939

40-
using IsBlockedCB = Delegate<bool, void*>;
40+
using IsBlockedCB = Delegate<bool(void*), void*>;
4141

4242
inline void esp_yield(const IsBlockedCB& blocked) {
4343
do {

0 commit comments

Comments
 (0)