Compare commits
3 Commits
de58e2d472
...
v1.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 77d9a22419 | |||
| 392a03a23d | |||
| e796ff3663 |
@@ -19,7 +19,7 @@
|
||||
#include "sensor_driver.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
||||
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), m_mtx(QMutex::RecursionMode::Recursive)
|
||||
{
|
||||
qDebug(ltr("Creating main window"));
|
||||
|
||||
@@ -29,6 +29,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
||||
enumMonitors();
|
||||
|
||||
setupMonitorsTab();
|
||||
setupSensorsTab();
|
||||
|
||||
setupTrayIcon();
|
||||
|
||||
@@ -53,6 +54,8 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
||||
|
||||
void MainWindow::enumSensors()
|
||||
{
|
||||
m_sensors.clear();
|
||||
|
||||
auto sensors = enumerateSensors();
|
||||
|
||||
for(auto& sensor: sensors) {
|
||||
@@ -218,6 +221,11 @@ void MainWindow::setupOverallBrightness()
|
||||
});
|
||||
}
|
||||
|
||||
void MainWindow::setupSensorsTab()
|
||||
{
|
||||
m_ui.tabs->removeTab(1);
|
||||
}
|
||||
|
||||
void MainWindow::setupTrayIcon()
|
||||
{
|
||||
loadIcons();
|
||||
|
||||
@@ -40,6 +40,8 @@ class MainWindow : public QMainWindow {
|
||||
void setupBrightness();
|
||||
void setupOverallBrightness();
|
||||
|
||||
void setupSensorsTab();
|
||||
|
||||
void setupTrayIcon();
|
||||
void setupCallbackTimer();
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ Found DFU: [0483:df11] ver=2200, devnum=57, cfg=1, intf=0, path="2-13.2.2", alt=
|
||||
Found DFU: [0483:df11] ver=2200, devnum=57, cfg=1, intf=0, path="2-13.2.2", alt=0, name="@Internal Flash /0x08000000/032*0001Kg", serial="FFFFFFFEFFFF"
|
||||
```
|
||||
|
||||
The firmware can then be flashing using:
|
||||
The firmware can then be flashed using:
|
||||
|
||||
```console
|
||||
$ dfu-util -a 0 -s 0x08000000 -D AdaptiveBrightnessFirmware.bin
|
||||
|
||||
Reference in New Issue
Block a user