diff options
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index 899143c36..9c647e847 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -238,6 +238,7 @@ int main(void) { FRESULT Fresult = FR_OK; time_t time_store = 0; + unsigned char Brd_ID = 0, Assy_ID = 0; // Enable interrupts to the processor. // ROM_IntMasterDisable(); @@ -355,8 +356,19 @@ int main(void) I2C_DispRFIDTask_Init();//I2C Task for dispensers & RFID + + Read_HW_Version(&Brd_ID, &Assy_ID); + + #ifdef USE_UART4_FOR_BTSR - BTSR_Init(); + if(Assy_ID > 0) + { + BTSR_Init(); + } + else + { + ReportWithPackageFilter(ThreadFilter,"BTSR - ERROR: Wrong HW Version",__FILE__,__LINE__,(int)Brd_ID,RpError,(int)Assy_ID,0); + } #endif #if defined(USE_RFID_LOGIC) || defined(USE_RFID_STUB) |
