Implement screens for DFU

This commit is contained in:
Sylwester Zieliński
2022-01-06 12:47:37 +01:00
parent c567836d01
commit c57a9c0c98
56 changed files with 384 additions and 222 deletions

View File

@@ -279,11 +279,13 @@ fun HomeView(callback: (NavDestination) -> Unit) {
contentAlignment = Alignment.Center
) {
FeatureButton(
R.drawable.ic_uart, R.string.uart_module,
R.drawable.ic_dfu, R.string.dfu_module,
R.string.uart_module_full
) { callback(NavDestination.DFU) }
}
}
Spacer(modifier = Modifier.height(16.dp))
}
}
}

View File

@@ -12,6 +12,6 @@ class HomeViewModel @Inject constructor(
) : ViewModel() {
fun onDeviceSelected(device: DiscoveredBluetoothDevice) {
deviceHolder.attachDevice(device.device)
deviceHolder.attachDevice(device)
}
}