Add max backup commands defines

In R5, its 4 bits for backup commands.
This commit is contained in:
Kawe Mazidjatari 2023-06-04 22:00:15 +02:00
parent bba1cdd8b2
commit 671528cb2b

View File

@ -4,6 +4,10 @@
* _protocol.h
*-----------------------------------------------------------------------------*/
// Max number of history commands to send ( 2 by default ) in case of dropped packets
#define NUM_BACKUP_COMMAND_BITS 4 // Originally 3 bits.
#define MAX_BACKUP_COMMANDS ((1 << NUM_BACKUP_COMMAND_BITS)-1) // 15 in R5; see 'CL_Move'.
enum class SIGNONSTATE : int
{
SIGNONSTATE_NONE = 0, // no state yet; about to connect.