Fix initOk method to use nullptr for null pointer check

This commit is contained in:
Ben Meadors
2026-05-06 08:17:27 -05:00
parent 9ed1ae241e
commit f2923590bc

View File

@@ -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; }
};