Skip to content

Commit

Permalink
Speed and Incline not working on QZ Desktop app [BUG] #1675
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Oct 3, 2023
1 parent 6acf3b4 commit 9f0111e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/proformtreadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ void proformtreadmill::writeCharacteristic(uint8_t *data, uint8_t data_len, cons
}
writeBuffer = new QByteArray((const char *)data, data_len);

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

if (!disable_log) {
emit debug(QStringLiteral(" >> ") + writeBuffer->toHex(' ') + QStringLiteral(" // ") + info);
Expand Down

0 comments on commit 9f0111e

Please sign in to comment.