* fix for RAK terminal chat
This commit is contained in:
@@ -267,7 +267,7 @@ bool BaseChatMesh::addContact(const ContactInfo& contact) {
|
||||
}
|
||||
|
||||
mesh::GroupChannel* BaseChatMesh::addChannel(const char* psk_base64) {
|
||||
if (num_channels < MAX_CHANNELS) {
|
||||
if (num_channels < MAX_GROUP_CHANNELS) {
|
||||
auto dest = &channels[num_channels];
|
||||
|
||||
memset(dest->secret, 0, sizeof(dest->secret));
|
||||
|
||||
@@ -48,7 +48,7 @@ class BaseChatMesh : public mesh::Mesh {
|
||||
int sort_array[MAX_CONTACTS];
|
||||
int matching_peer_indexes[MAX_SEARCH_RESULTS];
|
||||
unsigned long txt_send_timeout;
|
||||
mesh::GroupChannel channels[MAX_CHANNELS];
|
||||
mesh::GroupChannel channels[MAX_GROUP_CHANNELS];
|
||||
int num_channels;
|
||||
|
||||
mesh::Packet* composeMsgPacket(const ContactInfo& recipient, uint8_t attempt, const char *text, uint32_t& expected_ack);
|
||||
|
||||
Reference in New Issue
Block a user