Fix compile on ARM

This commit is contained in:
Vasily Evseenko 2017-10-12 23:26:13 +03:00
parent 95876f4bff
commit deb25aea60
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
LDFLAGS=-lrt -lpcap -lsodium
CPPFLAGS=-Wall -g
CPPFLAGS=-Wall -O2
all: rx tx keygen

2
tx.cpp
View File

@ -333,7 +333,7 @@ int main(int argc, char * const *argv)
fprintf(stderr, "Usage: %s [-K tx_key] [-m mavlink_agg_in_ms] [-k RS_K] [-n RS_N] [-u udp_port] [-p radio_port] interface\n",
argv[0]);
fprintf(stderr, "Default: K='%s', k=%d, n=%d, udp_port=%d, radio_port=%d\n", keypair.c_str(), k, n, udp_port, radio_port);
fprintf(stderr, "Radio MTU: %lu\n", MAX_PAYLOAD_SIZE);
fprintf(stderr, "Radio MTU: %lu\n", (unsigned long)MAX_PAYLOAD_SIZE);
exit(1);
}
}

View File

@ -104,7 +104,7 @@ static uint8_t ieee80211_header[] = {
// nonce: 56bit block_idx + 8bit fragment_idx
#define BLOCK_IDX_MASK ((1LU << 56) - 1)
#define BLOCK_IDX_MASK ((1LLU << 56) - 1)
#define WFB_PACKET_DATA 0x1
#define WFB_PACKET_KEY 0x2