Commit Graph

636 Commits

Author SHA1 Message Date
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
9472bbb58b Fix #384: FM radio getting stuck off on unrecognized incoming CTCSS tone 2024-01-12 15:54:36 +01:00
Krzysiek Egzmont
685ecb062b Refactor 2024-01-12 15:54:35 +01:00
Krzysiek Egzmont
3bf993d8b8 Cleanup the ENABLE_SQUELCH_MORE_SENSITIVE option, it was still applying some corrections even if disabled 2024-01-09 02:42:47 +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
ed5ae7842b Fix #366: Scan list 2 ignored everywhere 2024-01-01 20:50:21 +01:00
Krzysiek Egzmont
ac8c51d605 Fix s-meter and DTMF overlaying problem 2023-12-31 13:31:39 +01:00
Wouter van Gulik
429cffc0bc ui/menu.c: Simplify code; move name printing into main switch statement.
This saves a few bytes of flash.
2023-12-30 20:38:59 +01:00
Wouter van Gulik
fbdaf6631d menu: use const char* const 2023-12-30 20:35:11 +01:00
Krzysiek Egzmont
f8feef1ad5 Refactor 2023-12-30 20:22:55 +01:00
Krzysiek Egzmont
42a45a7ef2 Update README 2023-12-30 15:35:28 +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
ea733115de init.c: Declare loop variables in the loop 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
Krzysiek Egzmont
f35ce8d789 Menu style build option ENABLE_CUSTOM_MENU_LAYOUT 2023-12-28 22:08:56 +01:00
Juan Antonio
36ecde86e9 Reduce nesting 2023-12-28 22:08:56 +01:00
Krzysiek Egzmont
8f6e1be5e0 Refactor 2023-12-28 22:08:56 +01:00
Juan Antonio
cceba5a474 Add missing UI_DisplayClear() 2023-12-26 03:01:24 +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
Krzysiek Egzmont
38ec40b0db Faster AGC debugging print 2023-12-25 22:49:58 +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
1281bbf033 Remove redundant mensets. Memmove -> memcpy
* The whole gEeprom has been zero'd before. Moreover, strcpy null-terminates.
* There's no aliasing between gEeprom.* and Data.

Size: 60760 -> 60664
2023-12-25 22:49:06 +01:00
Juan Antonio
edf1f983d6 Ignore k5_eeprom.raw 2023-12-25 22:49:06 +01:00
Juan Antonio
b0d131d546 Fix include directives 2023-12-25 22:49:06 +01:00
Wouter van Gulik
ab61c4e74f Makefile: always provide VERSION_STRING if none set.
Without this set the compile-without-docker script did not work. They do
not have git installed.
2023-12-25 01:01:53 +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
e929a79765 Move variable declaration outside of guarded region
Fixes #328
2023-12-24 20:55:29 +01:00
Juan Antonio
d75209bad0 Rename str_ptr to adhere to the current style 2023-12-24 13:34:05 +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
a715389a8b Add Doxygen configuration file and makefile target
It can be used to generate sometimes useful call-graphs.
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
a08420a0b7 Simply some logic. Unify some #ifdef regions 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
Juan Antonio
7d982f1f8d Correct include guard #endif placement 2023-12-22 20:26:07 +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
egzumer
0d66eb8577
Update README.md 2023-12-19 17:37:24 +01:00
Krzysiek Egzmont
13b6bb06b2 Spectrum analyzer, more frequency steps 2023-12-19 03:08:18 +01:00
Krzysiek Egzmont
88f3537af0 9kHz, 20kHz, 200kHz frequency steps added #295 2023-12-18 17:12:33 +01:00
Krzysiek Egzmont
de8c501d65 S0, S9 settings even more constrained 2023-12-18 15:27:31 +01:00
egzumer
76bbaf9442
Update README.md 2023-12-18 15:23:02 +01:00