Skip to content

Commit d2955c4

Browse files
committed
Enable Both slot Flash options (Add Inactive slot flash warning) : Try 9
1 parent 9916b5a commit d2955c4

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot

1 file changed

+2
-2
lines changed

app/src/main/java/com/github/capntrips/kernelflasher/ui/screens/slot/SlotViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,15 @@ class SlotViewModel(
184184
}
185185

186186
@Suppress("SameParameterValue")
187-
private fun uiPrint(message: String) {
187+
private suspend fun uiPrint(message: String) {
188188
withContext (Dispatchers.Main) {
189189
_flashOutput.add("ui_print $message")
190190
// _flashOutput.add("ui_print")
191191
}
192192
}
193193

194194
// TODO: use base class for common functions
195-
private fun addMessage(message: String) {
195+
private suspend fun addMessage(message: String) {
196196
withContext (Dispatchers.Main) {
197197
_flashOutput.add(message)
198198
}

0 commit comments

Comments
 (0)