Skip to content
Snippets Groups Projects
Commit 5f29023e authored by Angel's avatar Angel
Browse files

added trial to fix the battery label not updating

parent ceadb856
No related branches found
No related tags found
No related merge requests found
......@@ -277,10 +277,11 @@ void MainWindow::updateBatteryVoltage(float battery_voltage)
{
m_battery_voltage = battery_voltage;
// Need to take voltage, display it and transform it to percentage
int percentage = (int) fromVoltageToPercent(m_battery_voltage);
// int percentage = (int) fromVoltageToPercent(m_battery_voltage);
QString qstr = "Raw voltage: ";
qstr.append(QString::number(battery_voltage, 'f', 2));
ui->raw_voltage->clear();
ui->raw_voltage->setText(qstr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment