Skip to content

Commit

Permalink
misc. CC1352 port fix [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Jun 25, 2020
1 parent 418a658 commit ab19e9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion software/firmware/source/SoftRF/Platform_CC13XX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,17 @@ static void BootManagerCheck(void)
bool revertIoInit;
uint8_t CurrentLed;

uint32_t addr = (uint32_t) &_imgHdr;

if (addr) return;

// Check if button is held on reset
revertIoInit = (digitalRead(PUSH1) == LOW);

uint8_t leds[] = {RED_LED, GREEN_LED, SOC_GPIO_PIN_LED_BLUE};
uint8_t LED_count = (cc13xx_board == TI_LPSTK_CC1352R ? 3 : 2);

if (&_imgHdr == NULL && revertIoInit)
if (revertIoInit)
{
Serial.println(F("Left button was held on reset."));
Serial.println(F("Continue holding for 5 seconds to revert to factory image."));
Expand Down

0 comments on commit ab19e9d

Please sign in to comment.