Merge remote-tracking branch 'prampec/master' into add_more_env_sensors

1.2-legacy
Mike Kinney 2022-01-17 00:03:14 +00:00
commit 7f759d6bb5
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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;