File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ char *Entry::getValue() {
166
166
}
167
167
168
168
bool Entry::setValue (const char *value, bool force) {
169
- if (force || strcmp (value, lastValue) != 0 ) {
169
+ if (force || !lastValue || strcmp (value, lastValue) != 0 ) {
170
170
lastUpdate = millis ();
171
171
if (lastValue) {
172
172
free (lastValue);
@@ -225,13 +225,13 @@ void Entry::operator<<(std::function<String()> inFunction) {
225
225
}
226
226
227
227
void Entry::operator <<(std::function<char *()> inFunction) {
228
- Entry::inFunction = [&]() {
228
+ Entry::inFunction = [&, inFunction ]() {
229
229
return String (inFunction ());
230
230
};
231
231
}
232
232
233
233
void Entry::operator <<(std::function<float ()> inFunction) {
234
- Entry::inFunction = [&]() {
234
+ Entry::inFunction = [&, inFunction ]() {
235
235
float value = inFunction ();
236
236
if (isnan (value)) {
237
237
return String (" " );
You can’t perform that action at this time.
0 commit comments