Commit Graph

269 Commits

Author SHA1 Message Date
Armel FAUVEAU
e45c2f5904 Fix F4IRT shortcut bug 2024-02-05 23:49:56 +01:00
Armel FAUVEAU
0d9320b9d6 Add SetTot menu 2024-02-01 19:39:19 +01:00
Armel FAUVEAU
103a23926d Add SetTot menu 2024-02-01 06:16:02 +01:00
Armel FAUVEAU
c9b8476733 Don't send tail tone when STE is off 2024-01-30 22:23:02 +01:00
Armel FAUVEAU
74421ed6d7 Apply changes to v0.22 2024-01-29 22:43:47 +01:00
Krzysiek Egzmont
f85ed9440d Refactor 2024-01-28 23:57:15 +01:00
Krzysiek Egzmont
ed5ebc4854 FIX #441: Setting ENABLE_NO_CODE_SCAN_TIMEOUT at 1 or 0 has no effect 2024-01-28 21:59:20 +01:00
Krzysiek Egzmont
46e2d1a0fd FM radio band selection #230 2024-01-15 22:30:12 +01:00
Krzysiek Egzmont
ea3b5b23a9 Refactor 2024-01-14 00:25:02 +01:00
Krzysiek Egzmont
8941576887 Fix #286: Lack of continuous tuning and monitor lockout while holding up/down button in monitor mode. 2024-01-13 23:35:33 +01:00
Krzysiek Egzmont
04b0bd8c93 Refactor 2024-01-13 23:30:44 +01:00
Yuri_su
01ccaaf212 Update app.c fix DTMF not reply
If set DTMF reply only, sometimes the DTMF call will not reply.
2024-01-08 23:40:01 +01:00
Juan Antonio
36ecde86e9 Reduce nesting 2023-12-28 22:08:56 +01:00
Krzysiek Egzmont
1882ab0cc1 Refactor 2023-12-26 01:40:04 +01:00
Juan Antonio
cbf4a7c140 Use function table. Simplify logic
Size: 60364 -> 60220
2023-12-25 22:49:06 +01:00
Juan Antonio
986c0ce368 Fix RX not honoring Backlight on TX/RX settings properly
Fixes #317
2023-12-24 22:56:35 +01:00
Juan Antonio
084fe4dd26 Fix 1750Hz so that it can perform STE
1750Hz and CTCSS tones can be send together.
2023-12-24 13:34:05 +01:00
Juan Antonio
6f1cabc807 Simplify gSchedulePowerSave logic
There was quite convoluted logic there, and what I believe, was a bug.

Rationale:

Both,
- gBatterySaveCountdown_10ms = battery_save_count_10ms;, and
- gSchedulePowerSave = false
are always executed inside FUNCTION_Select().

So the code is equivalent to:

if (any of those OR'd) {
	gBatterySaveCountdown_10ms = battery_save_count_10ms;
	gSchedulePowerSave = false; (but only if we have NOAA disabled)
} else {
	[other stuff from FUNCTION_Select()]
	gBatterySaveCountdown_10ms = battery_save_count_10ms;
	gSchedulePowerSave = false; (regarless of having NOAA or not)
}

So:
- OR is true, have NOAA-> don't clear gSchedulePowerSave
	-> implies we will enter here, again, until the OR is false, but only if we have NOAA.
- OR is False -> clear gSchedulePowerSave.

Moreover, checking with DualTachyon code at
6f8afac886/app/app.c (L747)
gSchedulePowerSave is always set to false if it was true.
2023-12-24 13:34:05 +01:00
Juan Antonio
1f4f026162 Simplify APP_EndTransmission
* Unify Roger-Beep selection
 * Extract function for DTMF EoT
2023-12-24 13:34:05 +01:00
Juan Antonio
2a75f8a9be Refactoring #285
Signed-off-by: Krzysiek Egzmont <egzumer@gmail.com>
2023-12-16 18:34:54 +01:00
Krzysiek Egzmont
af6b542da1 Cleanup 2023-12-15 13:47:07 +01:00
Juan Antonio
9dc79ce868 Fix compilation errors when UART is disabled 2023-12-14 22:03:44 +01:00
Juan Antonio
2e69acbdc4 Fix aircopy bypassing TX restrictions & refactor
And scrapes together a few more bytes.
2023-12-09 19:07:20 +01:00
Juan Antonio
a153e63be1 Add function to test if serial configuration is in progress
This was formely tested all over using testing for the state of
gSerialConfigCountDown_500ms in a couple of ways. This logic have been
extracted into a function to make the code more readable.
Also testing it with > 0 was a bit misleading as the variable is
unsigned so tesing with == and != is enough.
2023-12-09 15:50:59 +01:00
Juan Antonio
4322a7d8a9 Drop gScreenToDisplay switch and use function table
Saves some bytes
2023-12-09 15:50:59 +01:00
Juan Antonio
2164461449 Use function to check if in RX mode 2023-12-08 01:43:12 +01:00
Krzysiek Egzmont
5e78916dd3 AM-fix cleanup 2023-12-07 21:08:12 +01:00
Juan Antonio
754d2ce5fb Make Flashlight optional 2023-12-07 00:46:59 +01:00
Juan Antonio
cd032c39d2 Refactor alarm code
- Fixes Alarms bypassing TX restrictions

- Adds enumerations

- Makes use of mode ALARM_STATE_SITE_ALARM (formely ALARM_STATE_ALARM) instead
  checking against ALARM_STATE_TXALARM && ALARM_MODE == ALARM_MODE_TONE
  all over the place
2023-12-07 00:46:59 +01:00
Juan Antonio
103bdf212f Use enum for Flaslight & return early 2023-12-07 00:44:51 +01:00
Juan Antonio
bafe372cbc Simplify backlight logic 2023-12-07 00:44:51 +01:00
Krzysiek Egzmont
e5659ad6ab Fix battery save broken in last commits 2023-12-06 20:36:15 +01:00
Krzysiek Egzmont
c1a009cc2f AM fix modification 2023-12-06 17:54:32 +01:00
Krzysiek Egzmont
e95f577074 Real AM fix attempt, messy 2023-12-05 23:14:43 +01:00
Krzysiek Egzmont
86438ef3ce Improve AM-fix 2023-12-05 00:22:30 +01:00
Krzysiek Egzmont
f3297c29cb AGC debugging option 2023-12-04 22:58:27 +01:00
Krzysiek Egzmont
e039e65ee4 Refactoring 2023-12-04 22:53:59 +01:00
Krzysiek Egzmont
e2b81bf9c8 Refactoring 2023-12-03 21:46:17 +01:00
Krzysiek Egzmont
235a1a2f14 Refactor 2023-12-02 18:04:19 +01:00
Krzysiek Egzmont
5a2086fcd0 Improve AM-fix #160 2023-12-01 02:14:28 +01:00
Krzysiek Egzmont
292e2e7e7e Fix build error 2023-11-30 14:34:04 +01:00
Krzysiek Egzmont
050e04bcfd Enable/disable DTMF calling compile option 2023-11-28 23:00:01 +01:00
Krzysiek Egzmont
7857e8ed7a Scan range function #132 2023-11-28 20:13:02 +01:00
Krzysiek Egzmont
dc47842892 Refactor 2023-11-27 13:33:39 +01:00
Krzysiek Egzmont
ffdc0e03b5 FIX #114, #120: Restart monitor mode on PTT release, long press EXIT exits monitor mode 2023-11-23 21:02:47 +01:00
Krzysiek Egzmont
d8d4384b20 Refactoring 2023-11-23 19:48:47 +01:00
Krzysiek Egzmont
05feff432e Rename build option 2023-11-07 17:11:24 +01:00
Krzysiek Egzmont
b1d3a95ca2 Replace RX CSS menu scanning procedure with BK scanning method 2023-11-06 01:25:44 +01:00
Krzysiek Egzmont
1238bf090c Refactoring of cxcss and channel/frequency scanner code 2023-11-06 01:23:36 +01:00
Krzysiek Egzmont
21535c9ca0 Don't use AM fix for USB/BYP/RAW 2023-11-03 12:18:31 +01:00