Compare commits
3 Commits
de58e2d472
...
v1.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 77d9a22419 | |||
| 392a03a23d | |||
| e796ff3663 |
@@ -19,7 +19,7 @@
|
|||||||
#include "sensor_driver.hpp"
|
#include "sensor_driver.hpp"
|
||||||
#include "utils.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"));
|
qDebug(ltr("Creating main window"));
|
||||||
|
|
||||||
@@ -29,6 +29,7 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
|||||||
enumMonitors();
|
enumMonitors();
|
||||||
|
|
||||||
setupMonitorsTab();
|
setupMonitorsTab();
|
||||||
|
setupSensorsTab();
|
||||||
|
|
||||||
setupTrayIcon();
|
setupTrayIcon();
|
||||||
|
|
||||||
@@ -53,6 +54,8 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
|||||||
|
|
||||||
void MainWindow::enumSensors()
|
void MainWindow::enumSensors()
|
||||||
{
|
{
|
||||||
|
m_sensors.clear();
|
||||||
|
|
||||||
auto sensors = enumerateSensors();
|
auto sensors = enumerateSensors();
|
||||||
|
|
||||||
for(auto& sensor: sensors) {
|
for(auto& sensor: sensors) {
|
||||||
@@ -218,6 +221,11 @@ void MainWindow::setupOverallBrightness()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::setupSensorsTab()
|
||||||
|
{
|
||||||
|
m_ui.tabs->removeTab(1);
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::setupTrayIcon()
|
void MainWindow::setupTrayIcon()
|
||||||
{
|
{
|
||||||
loadIcons();
|
loadIcons();
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ class MainWindow : public QMainWindow {
|
|||||||
void setupBrightness();
|
void setupBrightness();
|
||||||
void setupOverallBrightness();
|
void setupOverallBrightness();
|
||||||
|
|
||||||
|
void setupSensorsTab();
|
||||||
|
|
||||||
void setupTrayIcon();
|
void setupTrayIcon();
|
||||||
void setupCallbackTimer();
|
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"
|
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
|
```console
|
||||||
$ dfu-util -a 0 -s 0x08000000 -D AdaptiveBrightnessFirmware.bin
|
$ dfu-util -a 0 -s 0x08000000 -D AdaptiveBrightnessFirmware.bin
|
||||||
|
|||||||
Reference in New Issue
Block a user