mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
add ability for default values in providerudp
This commit is contained in:
@@ -24,7 +24,7 @@ LedDeviceTpm2net::LedDeviceTpm2net(const Json::Value &deviceConfig)
|
||||
|
||||
bool LedDeviceTpm2net::setConfig(const Json::Value &deviceConfig)
|
||||
{
|
||||
ProviderUdp::setConfig(deviceConfig);
|
||||
ProviderUdp::setConfig(deviceConfig,50200);
|
||||
_LatchTime_ns = deviceConfig.get("latchtime",104000).asInt();
|
||||
_tpm2_max = deviceConfig.get("max-packet",170).asInt();
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user