From 18c9b7953341d359e1165bb76b57b353730deda5 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sat, 19 Mar 2016 20:33:00 +0200 Subject: [PATCH] Reset device name when the device is idling. --- device.c | 2 ++ 1 file changed, 2 insertions(+) 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; }