Browse Source

Increase size for energy text buffers

fastled
Xose Pérez 7 years ago
parent
commit
52ea7604de
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/power.ino

+ 2
- 2
code/espurna/power.ino View File

@ -195,8 +195,8 @@ void _powerReport() {
#endif #endif
char buf_current[10]; char buf_current[10];
char buf_energy_delta[10];
char buf_energy_total[10];
char buf_energy_delta[20];
char buf_energy_total[20];
dtostrf(_power_current, 1-sizeof(buf_current), POWER_CURRENT_DECIMALS, buf_current); dtostrf(_power_current, 1-sizeof(buf_current), POWER_CURRENT_DECIMALS, buf_current);
dtostrf(energy_delta * POWER_ENERGY_FACTOR, 1-sizeof(buf_energy_delta), POWER_ENERGY_DECIMALS, buf_energy_delta); dtostrf(energy_delta * POWER_ENERGY_FACTOR, 1-sizeof(buf_energy_delta), POWER_ENERGY_DECIMALS, buf_energy_delta);
dtostrf(_power_energy * POWER_ENERGY_FACTOR, 1-sizeof(buf_energy_total), POWER_ENERGY_DECIMALS, buf_energy_total); dtostrf(_power_energy * POWER_ENERGY_FACTOR, 1-sizeof(buf_energy_total), POWER_ENERGY_DECIMALS, buf_energy_total);


Loading…
Cancel
Save