Add ability to combine conditional filters of the same type in config.txt
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- raspberry-pi
- Domain
- embedded-iot
Research direction
The issue names config.txt and shows the existing cross-type filter syntax plus proposed same-type and boolean forms. Start by locating the config.txt filter parser and its current filter-combination behavior; done means same-type GPIO filters support the requested AND and OR semantics with coverage for the examples.
Written by the indexing model from the issue text.
Description
Currently it is only possible to combine filters of differing types in config.txt (ie: [pi4][gpio24=0] will only run on a Pi 4 if GPIO 24 is low). Please add the ability to combine filters of the same type by either using the same method of combining filters of different types or using boolean operators.
Combining similar filters using paradigm of combining different filters:
[gpio24=0]
[gpio27=1]
# This will only run if GPIO 24 is low and GPIO 27 is high
[all]
Combining similar filters using boolean logic:
[gpio24=0 && gpio27=1]
# This will only run if GPIO 24 is low **and** GPIO 27 is high
[all]
[gpio24=0 || gpio27=1]
# This will only run if GPIO 24 is low **or** GPIO 27 is high
[all]
Thank you for taking the time to consider this request.
- Dominant language
- No language data
- Stars
- 5.6k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from raspberrypi/firmware
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
raspberrypi/firmware#2042 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
raspberrypi/firmware#2040 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
raspberrypi/firmware#2039 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
raspberrypi/firmware#2038 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
raspberrypi/firmware#2037 · 4 comments ·
All issues in raspberrypi/firmware
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
espressif/esp-iot-solution#786 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100