Skip to content

Commit

Permalink
Increase maximum response value length
Browse files Browse the repository at this point in the history
  • Loading branch information
boblemaire committed Mar 30, 2022
1 parent ff9c70f commit 47bedd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/IotaWatt/CSVquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ void CSVquery::buildLine(){
}

void CSVquery::printValue(const double value, const int8_t decimals){
char str[12];
snprintf(str,12,"%#.*f",decimals,value);
char str[20];
snprintf(str,20,"%#.*f",decimals,value);
int len = strlen(str);
while(str[--len] == '0');
if(str[len] == '.') --len;
Expand Down

0 comments on commit 47bedd1

Please sign in to comment.