Merge pull request #173 from Mikkel-T/fix-sos-timing

Fix SOS timing
This commit is contained in:
Tibor Kaputa 2022-11-08 11:09:50 +01:00 committed by GitHub
commit 0e726d7d1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@ class MyCameraImpl(val context: Context) {
companion object {
var isFlashlightOn = false
private val SOS = arrayListOf(250L, 250L, 250L, 250L, 250L, 250L, 500L, 250L, 500L, 250L, 500L, 250L, 250L, 250L, 250L, 250L, 250L, 1000L)
private var u = 200L // The length of one dit (Time unit)
private val SOS = arrayListOf(u, u, u, u, u, u * 3, u * 3, u, u * 3, u, u * 3, u * 3, u, u, u, u, u, u * 7)
private var camera: Camera? = null
private var params: Camera.Parameters? = null