From f2923590bc458027dd826cebd52b239055f79a78 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Wed, 6 May 2026 08:17:27 -0500 Subject: [PATCH] Fix initOk method to use nullptr for null pointer check --- src/mesh/PacketHistory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/PacketHistory.h b/src/mesh/PacketHistory.h index af401a611..756fa86c1 100644 --- a/src/mesh/PacketHistory.h +++ b/src/mesh/PacketHistory.h @@ -72,5 +72,5 @@ class PacketHistory void removeRelayer(const uint8_t relayer, const uint32_t id, const NodeNum sender); // To check if the PacketHistory was initialized correctly by constructor - bool initOk(void) { return recentPackets != NULL && recentPacketsCapacity != 0; } + bool initOk(void) { return recentPackets != nullptr && recentPacketsCapacity != 0; } };