Skip to content

Commit

Permalink
Atletica Lightspeed Treadmill start issue (Fitshow) #1950
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jan 5, 2024
1 parent 85e9d0f commit f1cf2c4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/fitshowtreadmill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,22 @@ void fitshowtreadmill::update() {
if (lastSpeed == 0.0) {
lastSpeed = 0.5;
}
btinit(true);

uint8_t startTape1[] = {
FITSHOW_SYS_CONTROL,
FITSHOW_CONTROL_READY_OR_START,
(FITSHOW_TREADMILL_SPORT_ID >> 0) & 0xFF,
(FITSHOW_TREADMILL_SPORT_ID >> 8) & 0xFF,
(FITSHOW_TREADMILL_SPORT_ID >> 16) & 0xFF,
(FITSHOW_TREADMILL_SPORT_ID >> 24) & 0xFF,
FITSHOW_SYS_MODE_NORMAL,
0x00, // number of blocks (u8)
0x00,
0x00 // mode-dependent value (u16le)
}; // to verify
scheduleWrite(startTape1, sizeof(startTape1), QStringLiteral("init_start"));
forceSpeedOrIncline(lastSpeed, lastInclination);

lastStart = QDateTime::currentMSecsSinceEpoch();
requestStart = -1;
emit tapeStarted();
Expand Down

0 comments on commit f1cf2c4

Please sign in to comment.