Skip to content

Commit f0208cd

Browse files
committed
Merge branch 'kch-support' into testing
2 parents 79d2c9a + dc7f2e3 commit f0208cd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

runusb/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@ def setup_usercode_logging() -> None:
466466
username=mqtt_config.username,
467467
password=mqtt_config.password,
468468
connected_topic=f"{mqtt_config.topic_prefix}/connected",
469+
connected_callback=lambda: LED_CONTROLLER.set_wifi(True),
470+
disconnected_callback=lambda: LED_CONTROLLER.set_wifi(False),
469471
)
470472

471473
handler.setLevel(logging.INFO)

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ url = https://github.com/sourcebots/runusb
1111
python_requires = >=3.8
1212
packages = find:
1313
install_requires =
14-
logger-extras==0.4.0
14+
logger-extras==0.4.1
1515
rpi.GPIO==0.7.1
1616

1717
[options.extras_require]
18-
mqtt = logger-extras[mqtt]==0.4.0
18+
mqtt = logger-extras[mqtt]==0.4.1
1919

2020
[options.entry_points]
2121
console_scripts =

0 commit comments

Comments
 (0)