Commit Graph
424 Commits
Author SHA1 Message Date
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 4fd1ab8899 Remove redudant symbol 2023-12-08 01:43:12 +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 c697596806 FIX #194: Spectrum going crazy when AM-fix is active 2023-12-07 17:45:20 +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
Juan Antonio 52bdd408c4 Refactor, merge #186 2023-12-05 02:01:43 +01:00
Krzysiek Egzmont ed395ab638 FIX #185: Allow manual changing of gain values in spectrum when AM fix is active 2023-12-05 00:45:22 +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
g4eml 9ca3ccd744 AM-Fix for Spectrum 2023-12-02 23:16:14 +01:00
Krzysiek Egzmont d944ff4a34 Fix #170: ChName saves a name with wrong settings when used in frequency mode 2023-12-02 23:06:22 +01:00
Krzysiek Egzmont cfa745fda0 Refactor 2023-12-02 22:59:36 +01:00
Krzysiek Egzmont b505f81958 FIX #166: Switching to AM overwrites channel CTCSS/DCS (and some other) settings 2023-12-02 18:36:00 +01:00
Krzysiek Egzmont 235a1a2f14 Refactor 2023-12-02 18:04:19 +01:00
Krzysiek Egzmont a4cefe3401 FIX #167: F7+ band accessible even if WIDE_RX = 0 2023-12-02 15:31:19 +01:00
Krzysiek Egzmont 5a2086fcd0 Improve AM-fix #160 2023-12-01 02:14:28 +01:00
Krzysiek Egzmont c341570838 Refactor cleanup 2023-12-01 02:14:28 +01:00
Krzysiek Egzmont 292e2e7e7e Fix build error 2023-11-30 14:34:04 +01:00
Krzysiek Egzmont f9e10da9ee FIX #158: Don't allow to enter DTMF input when scan range is active 2023-11-29 17:38:31 +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 fe49f250b0 FM radio button actions changed to be the same as in VFO mode 2023-11-27 19:36:49 +01:00
Krzysiek Egzmont 3c643208ff FIX #152: Zero digit being entered when exiting FM radio with F+0 2023-11-27 13:42:47 +01:00
Krzysiek Egzmont dc47842892 Refactor 2023-11-27 13:33:39 +01:00
Krzysiek Egzmont 199b1a27f1 Spectrum: decimal point deletion fix #148, slower buttons repeats 2023-11-26 19:06:18 +01:00
Krzysiek Egzmont a0d052b68b Spectrum refactor 2023-11-25 19:28:21 +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 a43a3f949f READ MANUAL prompt for unlocking TX 2023-11-09 10:33:28 +01:00
Krzysiek Egzmont 49cec54cd3 TX on all bands #68 2023-11-08 01:43:06 +01:00
Krzysiek Egzmont 05feff432e Rename build option 2023-11-07 17:11:24 +01:00
Krzysiek Egzmont a0c2181197 Fix build error 2023-11-06 21:58:27 +01:00
wrobepio 23986a8648 Add "BLMIN TMP OFF" function for programmable buttons 2023-11-06 15:55:13 +01:00