lint warning changes

This commit is contained in:
proddy
2021-08-01 23:44:40 +02:00
parent 4863ecc329
commit 53e25ae213
3 changed files with 11 additions and 8 deletions

View File

@@ -36,14 +36,14 @@ char * Helpers::hextoa(char * result, const uint8_t value) {
#ifdef EMSESP_STANDALONE
// special function to work outside of ESP's libraries
char * Helpers::ultostr(char * ptr, uint32_t value, const uint8_t base) {
unsigned long t = 0, res = 0;
unsigned long tmp = value;
int count = 0;
if (NULL == ptr) {
return NULL;
}
unsigned long t = 0;
unsigned long tmp = value;
int count = 0;
if (tmp == 0) {
count++;
}
@@ -57,6 +57,8 @@ char * Helpers::ultostr(char * ptr, uint32_t value, const uint8_t base) {
*ptr = '\0';
unsigned long res = 0;
do {
res = value - base * (t = value / base);
if (res < 10) {