Commit Graph
617 Commits
Author SHA1 Message Date
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
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 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
Krzysiek Egzmont c4d9cfc895 Add AM-fix build option to EEPROM 2023-12-17 03:47:17 +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 e7a21c470f Makefile Mac build fix #284 2023-12-15 21:08:50 +01:00
Krzysiek Egzmont fc679c77a4 Fix other backlight menu issues #275 2023-12-15 18:08:40 +01:00
Krzysiek Egzmont 1151cf8667 Backlight brightness tuned down for backlight menu entries #275 2023-12-15 16:54:18 +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 a99d2dd1b1 Fix #272: Backlight time doubled 2023-12-15 02:56:25 +01:00
Juan Antonio 9dc79ce868 Fix compilation errors when UART is disabled 2023-12-14 22:03:44 +01:00
Juan Antonio 80fa310646 Fix use of wrong ENABLE guard 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
Krzysiek Egzmont fa5d3c1594 FIX #269: battery indicator always at 4 bars 2023-12-14 15:07:33 +01:00
Juan Antonio 1a53586922 Simplify logic in radio.c 2023-12-14 11:11:06 +01:00
Juan Antonio 687b63abb6 Fix signature 2023-12-14 11:11:06 +01:00
Juan Antonio 06f1c651bc Make LogUart receive a const char* const 2023-12-14 11:11:06 +01:00
Juan Antonio 33e4e3c4e0 Make AUDIO_PlayVoice static as it is only used inside of its module 2023-12-14 11:11:06 +01:00
Krzysiek Egzmont 93b97eff0a FIX #264: compilation error 2023-12-14 11:05:46 +01:00
egzumer 8638d37431 Update README.md 2023-12-13 19:19:29 +01:00