mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Reset descriptors list when characteristic is changed
This commit is contained in:
parent
2b115a0725
commit
61be3f15d7
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user