From 52ea7604dea94834daf10f424b952c1dc16d6268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Wed, 8 Nov 2017 13:25:33 +0100 Subject: [PATCH] Increase size for energy text buffers --- code/espurna/power.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/power.ino b/code/espurna/power.ino index fcb54c26..9c94e6d7 100644 --- a/code/espurna/power.ino +++ b/code/espurna/power.ino @@ -195,8 +195,8 @@ void _powerReport() { #endif 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(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);