Update xsns_01_counter.ino

Fix non floating point use function (#5265)
This commit is contained in:
Theo Arends 2019-02-18 11:06:16 +01:00
parent dd3ae40daf
commit c37a4a4398
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ void CounterShow(bool json)
dtostrfd((double)RtcSettings.pulse_counter[i] / 1000000, 6, counter);
} else {
dsxflg++;
dtostrfd(RtcSettings.pulse_counter[i], 0, counter);
snprintf_P(counter, sizeof(counter), PSTR("%lu"), RtcSettings.pulse_counter[i]);
}
if (json) {