Your ROOT_URL in app.ini is https://source.parasitstudio.de:63000/ but you are visiting https://source.parasitstudio.de/wirtz/MicroDexed/commit/a75494b7fa0c8ba09eabe30eb44bbb458575f011?style=split&whitespace=ignore-eol You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed display bar.

pull/32/head
Holger Wirtz 5 years ago
parent 9b9aa4540a
commit a75494b7fa
  1. 6
      UI.hpp

@ -4530,15 +4530,17 @@ void lcd_display_bar_float(const char* title, float value, float factor, int32_t
if (vi == 0) if (vi == 0)
{ {
lcd.write((uint8_t)vf / 2.0 - 0.5); lcd.write((uint8_t)vf / 2.0 - 0.5);
lcd.print(F(" ")); for (uint8_t i = vi + 1; i < LCD_cols; i++)
lcd.print(F(" ")); // empty block
} }
else else
{ {
for (uint8_t i = 0; i < vi; i++) for (uint8_t i = 0; i < vi; i++)
lcd.write((uint8_t)4); // full block lcd.write((uint8_t)4); // full block
if (vi < LCD_cols) if (vi < LCD_cols)
lcd.write((uint8_t)vf / 2.0 - 0.5); lcd.write((uint8_t)vf / 2.0 - 0.5);
for (uint8_t i = LCD_cols - vi; i < LCD_cols; i++) for (uint8_t i = vi + 1; i < LCD_cols; i++)
lcd.print(F(" ")); // empty block lcd.print(F(" ")); // empty block
} }
} }

Loading…
Cancel
Save