Commit Graph

576 Commits

Author SHA1 Message Date
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
Krzysiek Egzmont
716e9e23b8 README.md - add Github Codespace building manual 2023-12-13 19:04:29 +01:00
Juan Antonio
d0ae34f9b4 Replace memmove by memcpy 2023-12-13 16:07:07 +01:00
Juan Antonio
bd17aea72b Make SETTINGS_InitEEPROM zero struct gEeprom 2023-12-13 16:07:07 +01:00
Juan Antonio
34d688b101 Logic simplification. Replace memmove by memcpy 2023-12-13 16:07:07 +01:00
Juan Antonio
8c7f736797 Simplify come battery logic 2023-12-13 16:07:07 +01:00
Juan Antonio
a19579a888 Make makefile options settable from envars 2023-12-13 16:07:07 +01:00
Krzysiek Egzmont
00a2bc75b8 Tighter constraints for S0, S9 s-meter EEPROM settings #252 2023-12-13 13:48:18 +01:00
Krzysiek Egzmont
268c4dece3 S0 and S9 value settings #174 2023-12-12 18:51:38 +01:00
Krzysiek Egzmont
0c2fc6184c Fix #234: Bring back FM radio status indicator, show dual watch inactive while in FM radio 2023-12-12 00:52:26 +01:00
Krzysiek Egzmont
6bdce2d0e2 Refactor 2023-12-12 00:45:09 +01:00
g4eml
42a2e16e0e Update am_fix.c 2023-12-10 22:15:53 +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
Krzysiek Egzmont
eb6a3d0867 Fix compile error 2023-12-09 16:21:11 +01:00
Krzysiek Egzmont
e22cc4ccd0 Code comments 2023-12-09 15:51:40 +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
1203fdf0ca Use stepping instead of branching using modulus
Modulus operations are very costly and generally should be avoided.
They also take a few bytes.

This version is actually a quite faster.
2023-12-09 15:50:59 +01:00
Juan Antonio
cfc4763dd1 Scrape together a few bytes 2023-12-09 15:50:59 +01:00
Juan Antonio
b6a49db31d FM Radio: Simplify logic 2023-12-08 23:18:19 +01:00
Juan Antonio
82ddbcd375 Refactor stepFruencyTable & drop ARRAY_SIZE for frequencyBandTable 2023-12-08 23:17:33 +01:00
Juan Antonio
335c2ec9cd ACTION_Handle: Drop switch in favour of a function array 2023-12-08 01:43:12 +01:00
Juan Antonio
4249d917f8 Refactor of app/action.c
* Extracted funcionts
* Simplified logic of some functions
* Moved things arround a bit. Conditional code moved to the end
2023-12-08 01:43:12 +01:00
Juan Antonio
2164461449 Use function to check if in RX mode 2023-12-08 01:43:12 +01:00
Juan Antonio
c3906f42f8 Update .gitignore 2023-12-08 01:43:12 +01:00
Juan Antonio
d055fb0024 Reorder audio.c 2023-12-08 01:43:12 +01:00
Juan Antonio
c4ad9c6501 Unguard ACTION_OPT_BLMIN_TMP_OFF like the rest 2023-12-08 01:43:12 +01:00
Juan Antonio
4fd1ab8899 Remove redudant symbol 2023-12-08 01:43:12 +01:00
Krzysiek Egzmont
0793b68971 Write build options to EEPROM for CHIRP to use. 2023-12-07 22:51:48 +01:00
Krzysiek Egzmont
f7061c3195 FIX #206: missing 254.1Hz CTCSS code 2023-12-07 22:03:22 +01:00
Krzysiek Egzmont
5e78916dd3 AM-fix cleanup 2023-12-07 21:08:12 +01:00
Krzysiek Egzmont
13c17ad073 Fix #211: AM reception chopping 2023-12-07 20:48:36 +01:00
Krzysiek Egzmont
c697596806 FIX #194: Spectrum going crazy when AM-fix is active 2023-12-07 17:45:20 +01:00
g4eml
5c1cb4f2fc FIX #180: round frequency to half the step to support half channel offsets 2023-12-07 15:39:24 +01:00
Juan Antonio
754d2ce5fb Make Flashlight optional 2023-12-07 00:46:59 +01:00
Juan Antonio
c76a96c3ad Add enum for TR/TX mode 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
88f7b90237 FIX #197: DWCode,UPCode display error 2023-12-07 00:33:05 +01:00
Krzysiek Egzmont
66f1f545c3 Refactor 2023-12-06 23:08:57 +01:00
Krzysiek Egzmont
e5659ad6ab Fix battery save broken in last commits 2023-12-06 20:36:15 +01:00