Skip to content

Commit dd7fe1f

Browse files
committed
Fix build
1 parent bdaa7ac commit dd7fe1f

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

src/utility/BlynkDebug.cpp

+5-25
Original file line numberDiff line numberDiff line change
@@ -118,42 +118,27 @@
118118
#include <Arduino.h>
119119
#include <libmaple/nvic.h>
120120

121-
size_t BlynkFreeRam()
122-
{
123-
return 0;
124-
}
125-
126121
void BlynkReset()
127122
{
128123
nvic_sys_reset();
129124
for(;;) {}
130125
}
131126

127+
#define _BLYNK_USE_DEFAULT_FREE_RAM
132128
#define _BLYNK_USE_DEFAULT_MILLIS
133129
#define _BLYNK_USE_DEFAULT_DELAY
134130

135131
#elif defined (PARTICLE) || defined(SPARK)
136132

137133
#include "application.h"
138134

139-
size_t BlynkFreeRam()
140-
{
141-
return 0;
142-
}
143-
144135
void BlynkReset()
145136
{
146137
System.reset();
147138
for(;;) {} // To make compiler happy
148139
}
149140

150-
#define _BLYNK_USE_DEFAULT_MILLIS
151-
#define _BLYNK_USE_DEFAULT_DELAY
152-
153-
#elif defined(ENERGIA)
154-
155141
#define _BLYNK_USE_DEFAULT_FREE_RAM
156-
#define _BLYNK_USE_DEFAULT_RESET
157142
#define _BLYNK_USE_DEFAULT_MILLIS
158143
#define _BLYNK_USE_DEFAULT_DELAY
159144

@@ -242,15 +227,10 @@
242227
#warning "Need to implement board-specific utilities"
243228
#endif
244229

245-
size_t BlynkFreeRam()
246-
{
247-
return 0;
248-
}
249-
250-
void BlynkReset()
251-
{
252-
for(;;) {} // To make compiler happy
253-
}
230+
#define _BLYNK_USE_DEFAULT_FREE_RAM
231+
#define _BLYNK_USE_DEFAULT_RESET
232+
#define _BLYNK_USE_DEFAULT_MILLIS
233+
#define _BLYNK_USE_DEFAULT_DELAY
254234

255235
#endif
256236

0 commit comments

Comments
 (0)