Skip to content

Commit 8fb7658

Browse files
committed
Added an option to disable the 99-platformio-udev.rules
1 parent 642b568 commit 8fb7658

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

HISTORY.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ test-driven methodologies, and modern toolchains for unrivaled success.
2424

2525
* Dropped support for Python 3.6, requiring Python 3.7 or newer to run PlatformIO Core
2626
* Added a new ``-p, --port`` option to the `pio run <https://docs.platformio.org/en/latest/core/userguide/cmd_run.html#cmdoption-pio-run-p>`__ command, allowing users to set both ``upload_port`` and ``monitor_port`` simultaneously for a more streamlined workflow (`pull #5429 <https://github.com/platformio/platformio-core/pull/5429>`_)
27+
* Added an option to `disable the 99-platformio-udev.rules <https://docs.platformio.org/en/latest/core/userguide/cmd_settings.html#disable_udev_rules_check>`__ check, providing greater flexibility in environments where system-level udev configuration is not required (`pull #5204 <https://github.com/platformio/platformio-core/pull/5204>`_)
2728
* Introduced the `PLATFORMIO_DISABLE_UPGRADE_CHECK <https://docs.platformio.org/en/latest/envvars.html#envvar-PLATFORMIO_DISABLE_UPGRADE_CHECK>`__ environment variable, allowing users to disable upgrade availability checks when needed (`pull #5428 <https://github.com/platformio/platformio-core/pull/5428>`_)
28-
* Updated ``99-platformio-udev.rules`` to add support for Espressif devices with USB VID:PID 303a:4001, improving device detection and access on Linux systems (`issue #5445 <https://github.com/platformio/platformio-core/issues/5445>`_)
29-
* Fixed an issue that could cause an infinite retry loop when a cached package mirror redirect repeatedly failed (`pull #5435 <https://github.com/platformio/platformio-core/pull/5435>`_).
29+
* Fixed an issue that could cause an infinite retry loop when a cached package mirror redirect repeatedly failed (`pull #5435 <https://github.com/platformio/platformio-core/pull/5435>`_)
3030
* Fixed an issue where the library integrity metadata was not invalidated after correcting invalid version requirements (`issue #5232 <https://github.com/platformio/platformio-core/issues/5232>`_)
3131
* Fixed an issue where |UNITTESTING| failed on Windows due to improper handling of ``Serial.end()`` (`issue #5359 <https://github.com/platformio/platformio-core/issues/5359>`_)
3232
* Fixed an issue with floating-point precision in duration formatting that caused incorrect millisecond reporting (`issue #5424 <https://github.com/platformio/platformio-core/issues/5424>`_)

docs

platformio/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def projects_dir_validate(projects_dir):
6969
if "linux" in get_systype():
7070
DEFAULT_SETTINGS["disable_udev_rules_check"] = {
7171
"description": "Disable udev rules check",
72-
"value": False
72+
"value": False,
7373
}
7474

7575
SESSION_VARS = {

platformio/fs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
import click
2626

27-
from platformio import exception, app
27+
from platformio import app, exception
2828
from platformio.compat import IS_WINDOWS
2929

3030

@@ -122,6 +122,7 @@ def _rules_to_set(rules_path):
122122

123123
if "linux" not in get_systype() or app.get_setting("disable_udev_rules_check"):
124124
return None
125+
125126
installed_rules = [
126127
"/etc/udev/rules.d/99-platformio-udev.rules",
127128
"/lib/udev/rules.d/99-platformio-udev.rules",

0 commit comments

Comments
 (0)