Fix for "has default channel" with empty channel name (#4430)

This commit is contained in:
GUVWAF
2024-08-09 22:26:22 +02:00
committed by GitHub
parent 3878e025e4
commit debf4b934f
3 changed files with 9 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ class Channels
int16_t setActiveByIndex(ChannelIndex channelIndex);
// Returns true if the channel has the default name and PSK
bool isDefaultChannel(const meshtastic_Channel &ch);
bool isDefaultChannel(ChannelIndex chIndex);
// Returns true if we can be reached via a channel with the default settings given a region and modem preset
bool hasDefaultChannel();
@@ -129,4 +129,4 @@ class Channels
};
/// Singleton channel table
extern Channels channels;
extern Channels channels;