Allow packet and nodenums to be 32 bits long (but don't change yet)

This commit is contained in:
geeksville
2020-06-03 13:46:31 -07:00
parent a34cfb0ee0
commit 5b1488ddf0
6 changed files with 15 additions and 7 deletions

View File

@@ -9,7 +9,7 @@
typedef uint8_t NodeNum;
typedef uint8_t PacketId; // A packet sequence number
#define NODENUM_BROADCAST 255
#define NODENUM_BROADCAST (sizeof(NodeNum) == 4 ? UINT32_MAX : UINT8_MAX)
#define ERRNO_OK 0
#define ERRNO_NO_INTERFACES 33
#define ERRNO_UNKNOWN 32 // pick something that doesn't conflict with RH_ROUTER_ERROR_UNABLE_TO_DELIVER