mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
always send PUSH_CODE_NEW_ADVERT when advert was not added to contacts[]
This commit is contained in:
parent
7d1f52252b
commit
c61fde9328
2 changed files with 2 additions and 3 deletions
|
|
@ -323,7 +323,7 @@ void MyMesh::onContactsFull() {
|
|||
|
||||
void MyMesh::onDiscoveredContact(ContactInfo &contact, bool is_new, uint8_t path_len, const uint8_t* path) {
|
||||
if (_serial->isConnected()) {
|
||||
if (!shouldAutoAddContactType(contact.type) && is_new) {
|
||||
if (is_new) {
|
||||
writeContactRespFrame(PUSH_CODE_NEW_ADVERT, contact);
|
||||
} else {
|
||||
out_frame[0] = PUSH_CODE_ADVERT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue