Skip to content

Commit

Permalink
Fix compile on ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Oct 12, 2017
1 parent 95876f4 commit deb25ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

LDFLAGS=-lrt -lpcap -lsodium
CPPFLAGS=-Wall -g
CPPFLAGS=-Wall -O2

all: rx tx keygen

Expand Down
2 changes: 1 addition & 1 deletion tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion wifibroadcast.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit deb25ae

Please sign in to comment.