Added DFU in the homepage

This commit is contained in:
himalia416
2025-10-07 10:06:21 +02:00
committed by Himali Aryal
parent b48a504fdc
commit 8947c82c6d

View File

@@ -315,8 +315,26 @@ internal fun HomeView() {
)
}
else -> {
// TODO: Add more profiles
Profile.DFU -> {
FeatureButton(
iconId = R.drawable.ic_dfu,
description = R.string.dfu_module_full,
deviceName = peripheral.name,
deviceAddress = peripheral.address,
profileNames = services.map { it.profile.toString() },
onClick = {
onEvent(
UiEvent.OnDeviceClick(
peripheral.address,
serviceManager.profile
)
)
},
)
}
Profile.BATTERY -> {
// Battery service is handled above, do nothing here.
}
}
}