Skip to content

Commit

Permalink
Update managing of fw requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MSECode committed Dec 27, 2023
1 parent b8e3f1e commit 95c349a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion emBODY/eBcode/arch-arm/board/bat/BAT_Rev_B/Src/BAT_B.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

char Firmware_vers = 1;
char Revision_vers = 3;
char Build_number = 2;
char Build_number = 3;

uint32_t vtol=100; // voltage tolerance for hysteresis
uint32_t vhyst=0; // voltage hysteresis
Expand Down
8 changes: 5 additions & 3 deletions emBODY/eBcode/arch-arm/board/bat/BAT_Rev_B/Src/can_utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan)
}

/* Enable - Disable CAN Transmission from EMS */
if(((RxHeader.StdId & 0x700) >> 8) == 2) // GOT MESSAGE FROM CLASS ICUBCANPROTO_CLASS_POLLING_ANALOGSENSOR
if(((RxHeader.StdId & 0x700) >> 8) == 2 && (RxHeader.IDE == CAN_ID_STD)) // GOT MESSAGE FROM CLASS ICUBCANPROTO_CLASS_POLLING_ANALOGSENSOR
{

TX_ENABLED = (RxData[1] == 0) ? 1 : 0;
if((RxData[0] & 0x7F) == 7) // GOT MESSAGE OF TYPE ICUBCANPROTO_POL_AS_CMD__SET_TXMODE
{
TX_ENABLED = (RxData[1] == 0) ? 1 : 0;
}
}

/* Display LEDx */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ extern "C" {
#define EOMTHEEMSAPPLCFG_VERSION_MAJOR (VERSION_MAJOR_OFFSET+3)
// <o> minor <0-255>
// <o> minor <0-255>
#define EOMTHEEMSAPPLCFG_VERSION_MINOR 82
#define EOMTHEEMSAPPLCFG_VERSION_MINOR 83

// </h>version

Expand Down

0 comments on commit 95c349a

Please sign in to comment.