Merge pull request #83 from geeksville/dev

fix unit tests
This commit is contained in:
Kevin Hester 2020-07-02 14:47:53 -07:00 committed by GitHub
commit 794434dc57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -436,7 +436,7 @@ class MainActivity : AppCompatActivity(), Logging,
R.drawable.cloud_off,
R.string.disconnected
)
else -> Pair(R.drawable.cloud_off, R.string.disconnected)
// else -> Pair(R.drawable.cloud_off, R.string.disconnected)
}
val item = actionBarMenu?.findItem(R.id.connectStatusImage)

View file

@ -29,7 +29,7 @@ data class Position(
val longitude: Double,
val altitude: Int,
val time: Int = currentTime(), // default to current time in secs
val batteryPctLevel: Int
val batteryPctLevel: Int = 0
) : Parcelable {
companion object {
/// Convert to a double representation of degrees