Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksville committed Feb 29, 2020
1 parent 3fb4219 commit 75b4b72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/src/main/java/com/geeksville/mesh/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,14 @@ class MainActivity : AppCompatActivity(), Logging,
private val mesh = object : ServiceClient<com.geeksville.mesh.IMeshService>({
com.geeksville.mesh.IMeshService.Stub.asInterface(it)
}) {
override fun onConnected(m: com.geeksville.mesh.IMeshService) {
UIState.meshService = m
override fun onConnected(service: com.geeksville.mesh.IMeshService) {
UIState.meshService = service

// We don't start listening for packets until after we are connected to the service
registerMeshReceiver()

// We won't receive a notify for the initial state of connection, so we force an update here
onMeshConnectionChanged(m.isConnected)
onMeshConnectionChanged(service.isConnected)

debug("connected to mesh service, isConnected=${UIState.isConnected.value}")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ class MeshService : Service(), Logging {

// FIXME, perhaps we could learn our node ID by looking at any to packets the radio
// decided to pass through to us (except for broadcast packets)
val toNum = packet.to
//val toNum = packet.to

val p = packet.payload

Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/geeksville/mesh/ui/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ fun SettingsContent() {
if (!bonded) {

val typography = MaterialTheme.typography()
val context = ambient(ContextAmbient)

Text(
text =
Expand Down

0 comments on commit 75b4b72

Please sign in to comment.