Reset device name when the device is idling.

This commit is contained in:
Rolf Ahrenberg 2016-03-19 20:33:00 +02:00
parent c8a5245b6c
commit 9d7c745fe1
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,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;
}