Reset descriptors list when characteristic is changed

This commit is contained in:
Alex Spataru 2024-11-13 16:21:05 -05:00
parent 2b115a0725
commit 61be3f15d7

View File

@ -547,7 +547,9 @@ void IO::Drivers::BluetoothLE::setCharacteristicIndex(const int index)
if (descriptor.isValid())
m_service->writeDescriptor(descriptor, QByteArray::fromHex("0100"));
// Populate available descriptors
// Re-populate available descriptors
m_descriptors.clear();
m_descriptorNames.clear();
m_descriptors = c.descriptors();
for (const auto &descriptor : m_descriptors)
{