File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -753,7 +753,7 @@ void ftmsbike::characteristicChanged(const QLowEnergyCharacteristic &characteris
753753 } else if (MRK_S26C ) {
754754 m_watt = Cadence.value () * (Resistance.value () * 1.16 );
755755 emit debug (QStringLiteral (" Current Watt (MRK-S26C formula): " ) + QString::number (m_watt.value ()));
756- } else if (LYDSTO && watt_ignore_builtin) {
756+ } else if (( LYDSTO || DMASUN ) && watt_ignore_builtin) {
757757 m_watt = wattFromHR (true );
758758 emit debug (QStringLiteral (" Current Watt: " ) + QString::number (m_watt.value ()));
759759 } else {
@@ -1747,6 +1747,9 @@ void ftmsbike::deviceDiscovered(const QBluetoothDeviceInfo &device) {
17471747 } else if ((bluetoothDevice.name ().toUpper ().startsWith (" LYDSTO" ))) {
17481748 qDebug () << QStringLiteral (" LYDSTO found" );
17491749 LYDSTO = true ;
1750+ } else if ((bluetoothDevice.name ().toUpper ().startsWith (" DMASUN-" ) && bluetoothDevice.name ().toUpper ().endsWith (" -BIKE" ))) {
1751+ qDebug () << QStringLiteral (" DMASUN bike found" );
1752+ DMASUN = true ;
17501753 } else if ((bluetoothDevice.name ().toUpper ().startsWith (" SL010-" ))) {
17511754 qDebug () << QStringLiteral (" SL010 found" );
17521755 SL010 = true ;
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ class ftmsbike : public bike {
154154 bool BIKE_ = false ;
155155 bool SMB1 = false ;
156156 bool LYDSTO = false ;
157+ bool DMASUN = false ;
157158 bool SL010 = false ;
158159 bool REEBOK = false ;
159160 bool TITAN_7000 = false ;
You can’t perform that action at this time.
0 commit comments