Commit f10120e0 authored by luz's avatar luz

DALI: fixed hardwareModelGUID(), was suppressed so far because of wrong check

parent 9f9d74da
......@@ -641,7 +641,7 @@ string DaliDimmerDevice::hardwareGUID()
string DaliDimmerDevice::hardwareModelGUID()
{
if (brightnessDimmer->deviceInfo.oem_gtin==0)
if (brightnessDimmer->deviceInfo.gtin==0)
return ""; // none
// return as GS1 element strings with Application Identifier 01=GTIN
return string_format("gs1:(01)%llu", brightnessDimmer->deviceInfo.gtin);
......@@ -903,7 +903,7 @@ string DaliRGBWDevice::hardwareGUID()
string DaliRGBWDevice::hardwareModelGUID()
{
DaliBusDevicePtr dimmer = firstBusDevice();
if (!dimmer || dimmer->deviceInfo.oem_gtin==0)
if (!dimmer || dimmer->deviceInfo.gtin==0)
return ""; // none
// return as GS1 element strings with Application Identifier 01=GTIN
return string_format("gs1:(01)%llu", dimmer->deviceInfo.gtin);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment