Skip to content

Commit bdf8ef6

Browse files
committed
Verify the number of bits in NETWORK_USER
1 parent acff0c4 commit bdf8ef6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/RTK_Everywhere/NtripServer.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,8 @@ void ntripServerValidateTables()
824824
{
825825
if (ntripServerStateNameEntries != NTRIP_SERVER_STATE_MAX)
826826
reportFatalError("Fix ntripServerStateNameEntries to match NTRIPServerState");
827+
if (NETWORK_USER_MAX > (sizeof(NETWORK_USER) * 8))
828+
reportFatalError("Increase the NETWORK_USER type");
827829
}
828830

829831
#endif // COMPILE_NETWORK

0 commit comments

Comments
 (0)