Skip to content

Commit

Permalink
Merge pull request #51 from RoboTeamTwente/fix/mcp-ack
Browse files Browse the repository at this point in the history
watchdog
  • Loading branch information
Rapidice2814 authored Jul 18, 2024
2 parents 9464bce + 482157e commit 5bfe578
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Core/Src/top_board/robot.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,10 @@ void init(void){
}

set_Pin(LED2_pin, 1);
IWDG_Refresh(iwdg);
IWDG_Init(iwdg, 250);
if (!TEST_MODE) {
IWDG_Refresh(iwdg);
IWDG_Init(iwdg, 250);
}

{ // ====== SX : PINS, CALLBACKS, CHANNEL, SYNCWORDS
/* Initialize the SX1280 wireless chip */
Expand Down Expand Up @@ -533,8 +535,10 @@ void init(void){
}

set_Pin(LED3_pin, 1);
IWDG_Refresh(iwdg);
IWDG_Init(iwdg, 7500);
if (!TEST_MODE) {
IWDG_Refresh(iwdg);
IWDG_Init(iwdg, 7500);
}

{ // ====== INITIALIZE IMU (XSENS). 1 second calibration time, XFP_VRU_general = no magnetometer */
LOG("[init:"STRINGIZE(__LINE__)"] Initializing MTi\n");
Expand Down

0 comments on commit 5bfe578

Please sign in to comment.