Skip to content

Commit

Permalink
Update tacxneo2.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Dec 13, 2024
1 parent 83c6e7c commit 97d6556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/tacxneo2/tacxneo2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void tacxneo2::characteristicChanged(const QLowEnergyCharacteristic &characteris
uint16_t time_division = 1024;
uint8_t index = 4;

if (newValue.length() > 3 && Cadence.value() > 0) {
if (newValue.length() > 3) {
m_watt = (((uint16_t)((uint8_t)newValue.at(3)) << 8) | (uint16_t)((uint8_t)newValue.at(2)));
}

Expand Down

0 comments on commit 97d6556

Please sign in to comment.