Fixed hline voltage position

This commit is contained in:
Kai Lauterbach 2024-02-04 19:53:17 +01:00
parent a76905bd62
commit 37bb02e065

View file

@ -196,7 +196,7 @@ void draw_sprite(float freq,
spr.drawString(frequency, shift + 5, 15);
//String offset_line = String((2.0 * v_div) / 1000.0 - offset) + "V";
String offset_line = String((3.0 * v_div) / 1000.0 - offset) + "V";
spr.drawString(offset_line, shift + 25, 59);
spr.drawString(offset_line, shift + 25, (DISPLAY_HEIGHT/2)-8);
if (set_value) {
uint16_t t_left = shift+161;
@ -221,7 +221,7 @@ void draw_sprite(float freq,
spr.drawString(String(int(s_div)) + "uS/div", shift - 100, 15);
//String offset_line = String((2.0 * v_div) / 1000.0 - offset) + "V";
String offset_line = String((3.0 * v_div) / 1000.0 - offset) + "V";
spr.drawString(offset_line, shift + 75, (DISPLAY_HEIGHT/2) -8);
spr.drawString(offset_line, shift + 75, (DISPLAY_HEIGHT/2)-8);
}