Skip to content

Commit d93f3aa

Browse files
Enable Both slot Flash options (Add Inactive slot flash warning) : Try 9
1 parent 33bb69a commit d93f3aa

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
@@ -173,15 +173,15 @@ class SlotViewModel(
173173
}
174174

175175
@Suppress("SameParameterValue")
176-
private fun uiPrint(message: String) {
176+
private suspend fun uiPrint(message: String) {
177177
withContext (Dispatchers.Main) {
178178
_flashOutput.add("ui_print $message")
179179
_flashOutput.add(" ui_print")
180180
}
181181
}
182182

183183
// TODO: use base class for common functions
184-
private fun addMessage(message: String) {
184+
private suspend fun addMessage(message: String) {
185185
withContext (Dispatchers.Main) {
186186
_flashOutput.add(message)
187187
}

0 commit comments

Comments
 (0)