Commit Graph
380 Commits
Author SHA1 Message Date
Armel FAUVEAU 89d308293f Add SetInv menu 2024-02-06 05:00:55 +01:00
Armel FAUVEAU 9e462f777a Just 3 times to Unlock All 2024-02-05 23:50:48 +01:00
Armel FAUVEAU e45c2f5904 Fix F4IRT shortcut bug 2024-02-05 23:49:56 +01:00
Armel FAUVEAU ec87fff311 Remove useless line 2024-02-05 05:31:05 +01:00
Armel FAUVEAU 5acc7de23f Fix bug on N/W action 2024-02-04 20:42:47 +01:00
Armel FAUVEAU 9816c1b7be Add W/N action 2024-02-03 16:15:35 +01:00
Armel FAUVEAU e8760bda5f Add Contrast feature 2024-02-03 05:50:00 +01:00
Armel FAUVEAU 4b7dd4bdde Remove Scrambler 2024-02-02 03:15:47 +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 dc1808b1fe FIX #444: build error when ENABLE_DTMF_CALLING disabled 2024-01-29 16:50:58 +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 adbc466c49 Refactor 2024-01-15 17:01:42 +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
wu58430 4efabfc2b6 Prohibit entering submenus when displaying DTMF information 2024-01-12 17:51:36 +01:00
Krzysiek Egzmont 685ecb062b Refactor 2024-01-12 15:54:35 +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
Krzysiek Egzmont 3f012b3afe Fix uart BK regs reading/writing 2023-12-30 15:32:11 +01:00
Juan Antonio 289418f1c7 Reduce nesting 2023-12-28 22:08:57 +01:00
Juan Antonio e5cff16d98 Merge guarded code. Simplify DTMF_CheckGroupCall 2023-12-28 22:08:56 +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
Krzysiek Egzmont 995045006f Read/write BK4819 regs through UART 2023-12-25 23:52:15 +01:00
Juan Antonio cbf4a7c140 Use function table. Simplify logic
Size: 60364 -> 60220
2023-12-25 22:49:06 +01:00
Juan Antonio 7a7010da55 Unify PrintSmall functions
Size: 60420 -> 60364
2023-12-25 22:49:06 +01:00
Juan Antonio 78a45d9bbd Create function to zero gFrameBuffer
Size: 60464 -> 60420
2023-12-25 22:49:06 +01:00
Juan Antonio f8ef687026 Use pointers to avoid some string copying
Size: 60664 -> 60464
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 ee0ba9886d Simplify DTMF_FindContact 2023-12-24 13:34:05 +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
https://github.com/DualTachyon/uv-k5-firmware/blob/6f8afac8864e0349ecf8b10f91ce8f69273013db/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 34f2168856 Spectrum warp-around when switching steps 2023-12-24 13:34:05 +01:00
Juan Antonio bc9bb489e6 Un-unroll some loops and save a few bytes 2023-12-24 13:34:05 +01:00
Krzysiek Egzmont 2cc60da9ab Fix #314:Reset current bar when blacklisting in scan range 2023-12-22 20:22:39 +01:00
Krzysiek Egzmont 39eb3e835e Scan range in spectrum 2023-12-19 18:25:45 +01:00
Krzysiek Egzmont 13b6bb06b2 Spectrum analyzer, more frequency steps 2023-12-19 03:08:18 +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 fc679c77a4 Fix other backlight menu issues #275 2023-12-15 18:08:40 +01:00
Krzysiek Egzmont af6b542da1 Cleanup 2023-12-15 13:47:07 +01:00
Juan Antonio cc49a5007c Fix #275 Backlight does not get back to MAX brightness after exiting backlight menu entries
Backlight is set to FULL when interacting with backlight menu entries,
but it is not set back to MAX when exiting from those entries. This
commit corrects that behaviour.
2023-12-15 13:00:08 +01:00
Juan Antonio 9dc79ce868 Fix compilation errors when UART is disabled 2023-12-14 22:03:44 +01:00
Juan Antonio 7f5236c44e Fix compilation errors when FM radio is disabled 2023-12-14 22:03:44 +01:00
Juan Antonio 4b583bf2bd Assign NOP function when the flashlight is disabled 2023-12-14 22:03:44 +01:00