Commit Graph
17 Commits
Author SHA1 Message Date
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
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
Juan Antonio 52bdd408c4 Refactor, merge #186 2023-12-05 02:01:43 +01:00