mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
Ref T730, use physical unit
This commit is contained in:
committed by
Mat Sutcliffe
parent
9bbc993a62
commit
b0f1f5fae4
@@ -163,8 +163,8 @@ namespace BlackCore
|
|||||||
//! Properties @{
|
//! Properties @{
|
||||||
QUuid id;
|
QUuid id;
|
||||||
QString name;
|
QString name;
|
||||||
quint32 frequency;
|
quint32 frequencyHz;
|
||||||
quint32 frequencyAlias;
|
quint32 frequencyAliasHz;
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
//! From JSON
|
//! From JSON
|
||||||
@@ -173,8 +173,8 @@ namespace BlackCore
|
|||||||
StationDto dto;
|
StationDto dto;
|
||||||
dto.id = json.value("id").toString();
|
dto.id = json.value("id").toString();
|
||||||
dto.name = json.value("name").toString();
|
dto.name = json.value("name").toString();
|
||||||
dto.frequency = static_cast<quint32>(json.value("frequency").toInt());
|
dto.frequencyHz = static_cast<quint32>(json.value("frequency").toInt());
|
||||||
dto.frequencyAlias = static_cast<quint32>(json.value("frequencyAlias").toInt());
|
dto.frequencyAliasHz = static_cast<quint32>(json.value("frequencyAlias").toInt());
|
||||||
return dto;
|
return dto;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user