Skip to content

Commit

Permalink
Reset message, gpio reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Magura-Witkowski committed Mar 19, 2019
1 parent 804c095 commit 0bfc185
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/Inc/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ T T T T
#define CANPYBARA_REQUEST_INRD 0x02
#define CANPYBARA_REQUEST_OUTSET 0x3
#define CANPYBARA_REQUEST_SCANRESP 0x4
#define CANPYBARA_REQUEST_REBOOT 0x5
#define CANPYBARA_REQUEST_REBOOT 0x6

#define CANPYBARA_REPORT_VERSIONINFO CANPYBARA_CLIENT_REPORT(CANPYBARA_REQUEST_VERSIONINFO)
#define CANPYBARA_REPORT_STATUS CANPYBARA_CLIENT_REPORT(CANPYBARA_REQUEST_STATUS)
Expand Down
1 change: 1 addition & 0 deletions Core/Src/can.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ void canpybara_can_rx(CAN_HandleTypeDef* hcan)
break;

case CANPYBARA_REQUEST_REBOOT:
LOG("Received reset request...");
for(;;);
break;

Expand Down
2 changes: 1 addition & 1 deletion Core/Src/stm32f1xx_it.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
// Periodic CAN reports
if(htim == &htim1)
{
// canpybara_gpio_report();
canpybara_gpio_report();
}

// Debounce filter
Expand Down

0 comments on commit 0bfc185

Please sign in to comment.