Update batch schema and add ACK handling
This commit is contained in:
@@ -219,11 +219,11 @@ static void render_sender_measurement() {
|
||||
display.setCursor(0, 12);
|
||||
display.printf("P %.0fW", g_last_meter.total_power_w);
|
||||
display.setCursor(0, 24);
|
||||
display.printf("L1 %.0fV %.0fW", g_last_meter.phase_voltage_v[0], g_last_meter.phase_power_w[0]);
|
||||
display.printf("L1 %.0fW", g_last_meter.phase_power_w[0]);
|
||||
display.setCursor(0, 36);
|
||||
display.printf("L2 %.0fV %.0fW", g_last_meter.phase_voltage_v[1], g_last_meter.phase_power_w[1]);
|
||||
display.printf("L2 %.0fW", g_last_meter.phase_power_w[1]);
|
||||
display.setCursor(0, 48);
|
||||
display.printf("L3 %.0fV %.0fW", g_last_meter.phase_voltage_v[2], g_last_meter.phase_power_w[2]);
|
||||
display.printf("L3 %.0fW", g_last_meter.phase_power_w[2]);
|
||||
display.display();
|
||||
}
|
||||
|
||||
@@ -318,14 +318,14 @@ static void render_receiver_sender(uint8_t index) {
|
||||
display.setCursor(0, 24);
|
||||
display.printf("P %.0fW", status.last_data.total_power_w);
|
||||
display.setCursor(0, 36);
|
||||
display.printf("L1 %.0fV %.0fW", status.last_data.phase_voltage_v[0], status.last_data.phase_power_w[0]);
|
||||
display.printf("L1 %.0fW", status.last_data.phase_power_w[0]);
|
||||
display.setCursor(0, 48);
|
||||
display.printf("L2 %.0fV %.0fW", status.last_data.phase_voltage_v[1], status.last_data.phase_power_w[1]);
|
||||
display.printf("L2 %.0fW", status.last_data.phase_power_w[1]);
|
||||
display.setCursor(0, 56);
|
||||
if (status.last_data.link_valid) {
|
||||
display.printf("R:%d S:%.1f", status.last_data.link_rssi_dbm, status.last_data.link_snr_db);
|
||||
} else {
|
||||
display.printf("L3 %.0fV %.0fW", status.last_data.phase_voltage_v[2], status.last_data.phase_power_w[2]);
|
||||
display.printf("L3 %.0fW", status.last_data.phase_power_w[2]);
|
||||
}
|
||||
display.display();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user