sforkowany z mirror/meshtastic-firmware
Merge remote-tracking branch 'prampec/master' into add_more_env_sensors
commit
7f759d6bb5
|
@ -81,9 +81,9 @@ int CannedMessagePlugin::splitConfiguredMessages()
|
||||||
int CannedMessagePlugin::handleInputEvent(const InputEvent *event)
|
int CannedMessagePlugin::handleInputEvent(const InputEvent *event)
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
(strlen(radioConfig.preferences.canned_message_plugin_allow_input_origin) > 0) &&
|
(strlen(radioConfig.preferences.canned_message_plugin_allow_input_source) > 0) &&
|
||||||
(strcmp(radioConfig.preferences.canned_message_plugin_allow_input_origin, event->source) != 0) &&
|
(strcmp(radioConfig.preferences.canned_message_plugin_allow_input_source, event->source) != 0) &&
|
||||||
(strcmp(radioConfig.preferences.canned_message_plugin_allow_input_origin, "_any") != 0))
|
(strcmp(radioConfig.preferences.canned_message_plugin_allow_input_source, "_any") != 0))
|
||||||
{
|
{
|
||||||
// Event source is not accepted.
|
// Event source is not accepted.
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Ładowanie…
Reference in New Issue