diff --git a/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp b/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp index 66ded0c2b09cc65ffb02f951ef5b2f2539418721..ba70d7251a212b425e3458d9cdf24dd56c737f1d 100644 --- a/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp +++ b/pps_ws/src/d_fall_pps/GUI_Qt/studentGUI/src/MainWindow.cpp @@ -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); }