correct impossibility to read value with HM10
#281 and make the code more flexible (deduct an offset from a key value instead of fixed offset)
This commit is contained in:
1 parent
4b9ae94d05
commit
69e0428084
2 files changed
+30
-12
No files matched your search
@@ -881,6 +881,14 @@ void revert_hex_data(char * in, char * out, int l){
|
||||
out[l-1] = '\0';
|
||||
}
|
||||
|
||||
int strpos(char *haystack, char *needle) //from @miere https://stackoverflow.com/users/548685/miere
|
||||
{
|
||||
char *p = strstr(haystack, needle);
|
||||
if (p)
|
||||
return p - haystack;
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool to_bool(String const& s) { // thanks Chris Jester-Young from stackoverflow
|
||||
return s != "0";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user