Skip to content

Commit

Permalink
Sole F63 doesn't work with qz #597
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Oct 26, 2023
1 parent da9c570 commit b649e5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/solef80treadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ void solef80treadmill::writeCharacteristic(uint8_t *data, uint8_t data_len, QStr
}
writeBuffer = new QByteArray((const char *)data, data_len);

gattCustomService->writeCharacteristic(gattWriteCharCustomService, *writeBuffer);
if (gattWriteCharacteristic.properties() & QLowEnergyCharacteristic::WriteNoResponse) {
gattCommunicationChannelService->writeCharacteristic(gattWriteCharacteristic, *writeBuffer,
QLowEnergyService::WriteWithoutResponse);
} else {
gattCommunicationChannelService->writeCharacteristic(gattWriteCharacteristic, *writeBuffer);
}

if (!disable_log)
qDebug() << " >> " << writeBuffer->toHex(' ') << " // " << info;
Expand Down

0 comments on commit b649e5e

Please sign in to comment.