Skip to content

Commit 42dda0e

Browse files
committed
Complete XCX Bluetooth lifecycle integration
1 parent fc14ac2 commit 42dda0e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/devices/bluetooth.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4346,6 +4346,11 @@ void bluetooth::restart() {
43464346
delete ftmsBike;
43474347
ftmsBike = nullptr;
43484348
}
4349+
if (xcxBike) {
4350+
4351+
delete xcxBike;
4352+
xcxBike = nullptr;
4353+
}
43494354
if (wahooKickrSnapBike) {
43504355

43514356
delete wahooKickrSnapBike;
@@ -4661,6 +4666,8 @@ bluetoothdevice *bluetooth::device() {
46614666
return snodeBike;
46624667
} else if (ftmsBike) {
46634668
return ftmsBike;
4669+
} else if (xcxBike) {
4670+
return xcxBike;
46644671
} else if (wahooKickrSnapBike) {
46654672
return wahooKickrSnapBike;
46664673
} else if (technogymBike) {

0 commit comments

Comments
 (0)