diff --git a/device.c b/device.c index 7dad8c0..97836f0 100644 --- a/device.c +++ b/device.c @@ -210,6 +210,8 @@ cString cSatipDevice::DeviceType(void) const cString cSatipDevice::DeviceName(void) const { debug16("%s [device %u]", __PRETTY_FUNCTION__, deviceIndexM); + if (!Receiving()) + return cString::sprintf("%s %d", *DeviceType(), deviceIndexM); return deviceNameM; }