mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-02 03:15:37 +00:00
Add the option to override the frequency from the radio
This commit is contained in:
1 parent
81525b6dd3
commit
07504a2a95
4 files changed
+137
-16
No files matched your search
+13
@@ -72,4 +72,17 @@ interface IRadioController {
|
||||
* Default: delegates to [setWorkingFrequency].
|
||||
*/
|
||||
suspend fun setTxVfoFrequency(frequencyHz: Long): Boolean = setWorkingFrequency(frequencyHz)
|
||||
|
||||
/**
|
||||
* Read the frequency of the currently active VFO (IC-705: CMD 0x25 sub 0x00).
|
||||
* Default: delegates to [readFrequencyAndMode].
|
||||
*/
|
||||
suspend fun readWorkingFrequency(): Long? = readFrequencyAndMode()?.first
|
||||
|
||||
/**
|
||||
* Read the frequency of the inactive/TX VFO (IC-705: CMD 0x25 sub 0x01).
|
||||
* Used for tuning detection in split mode.
|
||||
* Default: delegates to [readWorkingFrequency].
|
||||
*/
|
||||
suspend fun readTxVfoFrequency(): Long? = readWorkingFrequency()
|
||||
}
|
||||
Reference in new issue
Block a user