mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-30 11:23:53 +00:00
[modules][external notifications] allow select channel to listen to
This commit is contained in:
parent
761804b17a
commit
25a3a09d5f
@ -116,9 +116,6 @@ ExternalNotificationModule::ExternalNotificationModule()
|
|||||||
: SinglePortModule("ExternalNotificationModule", PortNum_TEXT_MESSAGE_APP), concurrency::OSThread(
|
: SinglePortModule("ExternalNotificationModule", PortNum_TEXT_MESSAGE_APP), concurrency::OSThread(
|
||||||
"ExternalNotificationModule")
|
"ExternalNotificationModule")
|
||||||
{
|
{
|
||||||
// restrict to the admin channel for rx
|
|
||||||
boundChannel = Channels::gpioChannel;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Uncomment the preferences below if you want to use the module
|
Uncomment the preferences below if you want to use the module
|
||||||
without having to configure it from the PythonAPI or WebUI.
|
without having to configure it from the PythonAPI or WebUI.
|
||||||
@ -132,6 +129,11 @@ ExternalNotificationModule::ExternalNotificationModule()
|
|||||||
// moduleConfig.external_notification.output_ms = 1000;
|
// moduleConfig.external_notification.output_ms = 1000;
|
||||||
// moduleConfig.external_notification.output = 13;
|
// moduleConfig.external_notification.output = 13;
|
||||||
|
|
||||||
|
if (moduleConfig.external_notification.alert_message) {
|
||||||
|
// restrict to the gpio channel for rx
|
||||||
|
boundChannel = Channels::gpioChannel;
|
||||||
|
}
|
||||||
|
|
||||||
if (moduleConfig.external_notification.enabled) {
|
if (moduleConfig.external_notification.enabled) {
|
||||||
|
|
||||||
DEBUG_MSG("Initializing External Notification Module\n");
|
DEBUG_MSG("Initializing External Notification Module\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user