Fix #36 - allow users to select 'none' for the preferred radio

If none is selected, we do not leave our service running.  And we do
not start it on boot.
This commit is contained in:
geeksville 2020-06-07 18:55:08 -07:00
parent 7a3cda314e
commit ce14fde33b
4 changed files with 67 additions and 40 deletions

View file

@ -4,4 +4,13 @@ import java.io.Closeable
interface IRadioInterface : Closeable {
fun handleSendToRadio(p: ByteArray)
}
class NopInterface : IRadioInterface {
override fun handleSendToRadio(p: ByteArray) {
}
override fun close() {
}
}