This repository has been archived on 2026-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-10 16:30:25 +02:00

24 lines
465 B
C++

#include "platformhelperubports.h"
#include <QSettings>
#include <QUuid>
PlatformHelperUBPorts::PlatformHelperUBPorts(QObject *parent) : PlatformHelper(parent)
{
}
QString PlatformHelperUBPorts::platform() const
{
return "ubports";
}
QString PlatformHelperUBPorts::deviceSerial() const
{
QSettings s;
if (!s.contains("deviceSerial")) {
s.setValue("deviceSerial", QUuid::createUuid());
}
return s.value("deviceSerial").toString();
}