Skip to content

Commit

Permalink
Merge pull request #75 from bitcraze/krichardsson/revert-optimization
Browse files Browse the repository at this point in the history
Revert optimization
  • Loading branch information
krichardsson authored Sep 6, 2022
2 parents becd31e + e113c81 commit a7ca086
Show file tree
Hide file tree
Showing 2 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
Expand Up @@ -31,7 +31,7 @@ NRF_S110 ?= s110
INCLUDES= -I Include -I Include/gcc -Iinterface

#CONFIG = -DRSSI_ACK_PACKET
BUILD_OPTION = -g3 -Os -Wall -Werror -fsingle-precision-constant -ffast-math -std=gnu11
BUILD_OPTION = -g3 -O0 -Wall -Werror -fsingle-precision-constant -ffast-math -std=gnu11
PERSONAL_DEFINES ?=

PROCESSOR = -mcpu=cortex-m0 -mthumb
Expand Down
4 changes: 2 additions & 2 deletions src/esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static int txpower = RADIO_TXPOWER_TXPOWER_0dBm;
static bool contwave = false;
static uint64_t address = 0xE7E7E7E7E7ULL;

static enum {doTx, doRx} rs; //Radio state
static volatile enum {doTx, doRx} rs; //Radio state

static EsbPacket rxPackets[RXQ_LEN];
static volatile int rxq_head = 0;
Expand Down Expand Up @@ -97,7 +97,7 @@ static uint32_t bytewise_bitswap(uint32_t inp)
// Handles the queue
static void setupTx(bool retry, bool empty)
{
static EsbPacket * lastSentPacket;
static volatile EsbPacket * lastSentPacket;

if (!empty && retry) {
NRF_RADIO->PACKETPTR = (uint32_t)lastSentPacket;
Expand Down

0 comments on commit a7ca086

Please sign in to comment.