Skip to content

Commit

Permalink
Fix peer name allocation preventing new friends
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin8709 authored Sep 2, 2024
1 parent 84bc70d commit 54a7e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/pwnagotchi/pwngrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void add_new_peer(DynamicJsonDocument &json, signed int rssi) {
peer.timestamp = json["timestamp"].as<int>();
peer.uptime = json["uptime"].as<int>();
peer.version = json["version"].as<String>();
pwngrid_last_friend_name = pwngrid_peers[pwngrid_friends_tot].name;

// Check if it exists in the list
bool exists=false;
for(auto peer_list:pwngrid_peers) {
Expand Down

0 comments on commit 54a7e86

Please sign in to comment.