Skip to content

Commit

Permalink
fix persistent mode in hset command #92
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-83 committed Oct 31, 2023
1 parent c397343 commit 45dca4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

#### v 2.1.2 - 2023.10.31
* Fix: fixed persistent mode in `hset` command #92

#### v 2.1.1 - 2022.09.19
* Fix: fixed an error that occurred when FreeRTOS was not enabled
* Fix: fixed a bug in executeCommandFast function
Expand Down
10 changes: 5 additions & 5 deletions src/Arancino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,35 +380,35 @@ ArancinoPacket ArancinoClass::hset(char *key, char *field, int value, bool isPer
{
char str[20];
itoa(value, str, 10);
return hset(key, field, str);
return hset(key, field, str, isPersistent);
}

ArancinoPacket ArancinoClass::hset(char *key, char *field, float value, bool isPersistent)
{
char str[20] = "";
_floatToString(value, decimal_digits, str);
return hset(key, field, str);
return hset(key, field, str, isPersistent);
}

ArancinoPacket ArancinoClass::hset(char *key, char *field, double value, bool isPersistent)
{
char str[20] = "";
_doubleToString(value, decimal_digits, str);
return hset(key, field, str);
return hset(key, field, str, isPersistent);
}

ArancinoPacket ArancinoClass::hset(char *key, char *field, uint32_t value, bool isPersistent)
{
char str[20];
itoa(value, str, 10);
return hset(key, field, str);
return hset(key, field, str, isPersistent);
}

ArancinoPacket ArancinoClass::hset(char *key, char *field, long value, bool isPersistent)
{
char str[20];
itoa(value, str, 10);
return hset(key, field, str);
return hset(key, field, str, isPersistent);
}

ArancinoPacket ArancinoClass::hset(char *key, char *field, char *value, bool isPersistent)
Expand Down

0 comments on commit 45dca4d

Please sign in to comment.