Browse Source

Weird bug in HTML minifier

fastled
Xose Pérez 7 years ago
parent
commit
30d9b111f3
4 changed files with 3610 additions and 3608 deletions
  1. BIN
      code/espurna/data/index.html.gz
  2. +9
    -7
      code/espurna/power.ino
  3. +3599
    -3599
      code/espurna/static/index.html.gz.h
  4. +2
    -2
      code/html/index.html

BIN
code/espurna/data/index.html.gz View File


+ 9
- 7
code/espurna/power.ino View File

@ -118,16 +118,18 @@ void _powerRead() {
_filter_active.add(active); _filter_active.add(active);
#endif #endif
/* THERE IS A BUG HERE SOMEWHERE :)
// Debug
/*
char current_buffer[10]; char current_buffer[10];
dtostrf(current, sizeof(current_buffer)-1, POWER_CURRENT_DECIMALS, current_buffer);
dtostrf(current, 1-sizeof(current_buffer), POWER_CURRENT_DECIMALS, current_buffer);
DEBUG_MSG_P(PSTR("[POWER] Current: %sA\n"), current_buffer); DEBUG_MSG_P(PSTR("[POWER] Current: %sA\n"), current_buffer);
DEBUG_MSG_P(PSTR("[POWER] Voltage: %sA\n"), int(voltage));
DEBUG_MSG_P(PSTR("[POWER] Apparent Power: %dW\n"), int(apparent));
DEBUG_MSG_P(PSTR("[POWER] Voltage: %dV\n"), (int) voltage);
DEBUG_MSG_P(PSTR("[POWER] Apparent Power: %dW\n"), (int) apparent);
DEBUG_MSG_P(PSTR("[POWER] Energy: %dJ\n"), (int) _power_energy);
#if POWER_HAS_ACTIVE #if POWER_HAS_ACTIVE
DEBUG_MSG_P(PSTR("[POWER] Active Power: %dW\n"), int(active));
DEBUG_MSG_P(PSTR("[POWER] Reactive Power: %dW\n"), int(reactive));
DEBUG_MSG_P(PSTR("[POWER] Power Factor: %d%%\n"), int(100 * factor));
DEBUG_MSG_P(PSTR("[POWER] Active Power: %dW\n"), (int) active);
DEBUG_MSG_P(PSTR("[POWER] Reactive Power: %dW\n"), (int) reactive);
DEBUG_MSG_P(PSTR("[POWER] Power Factor: %d%%\n"), (int) (100 * factor));
#endif #endif
*/ */


+ 3599
- 3599
code/espurna/static/index.html.gz.h
File diff suppressed because it is too large
View File


+ 2
- 2
code/html/index.html View File

@ -225,8 +225,8 @@
</div> </div>
<div class="pure-g module module-emon module-hlw module-v9261f module-ech1560"> <div class="pure-g module module-emon module-hlw module-v9261f module-ech1560">
<label class="pure-u-1 pure-u-sm-1-4" for="pwrEnergy">Energy (Agg)</label>
<input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrEnergy" post=" J" readonly />
<label class="pure-u-1 pure-u-sm-1-4" for="pwrEnergy">Energy</label>
<input class="pure-u-1 pure-u-sm-3-4" type="text" name="pwrEnergy" post=" J (aggregated)" readonly />
</div> </div>
<div class="pure-u-1 state"> <div class="pure-u-1 state">


Loading…
Cancel
Save