From f3a8ebb62df36dba6ade024a99de37e1120e4259 Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Wed, 13 Mar 2019 10:19:59 +0200 Subject: cahnge the LS_TYPE to LS_POLARITY to support the new dispenser card (Inversion LS polaity in old cards) --- Software/Embedded_SW/Embedded/DataDef.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Software/Embedded_SW/Embedded/DataDef.h') diff --git a/Software/Embedded_SW/Embedded/DataDef.h b/Software/Embedded_SW/Embedded/DataDef.h index 0027a2aa1..3b62a0489 100644 --- a/Software/Embedded_SW/Embedded/DataDef.h +++ b/Software/Embedded_SW/Embedded/DataDef.h @@ -294,8 +294,8 @@ typedef union #define LIMIT 0 // Limit Switch #define NO_LIMIT 1 -#define MAGNETIC_LS_LIMIT 1 // Limit Switch -#define MAGNETIC_LS_NO_LIMIT 0 +//#define INVERSION_POLARITY_LIMIT 1 // Limit Switch +//#define INVERSION_POLARITY_NO_LIMIT 0 typedef enum @@ -309,9 +309,9 @@ typedef enum typedef enum { - OPTIC_LS = 0, - MAGNETIC_LS = 1, -}LS_TYPE; + DEFAULT_POLARITY = 0,//OPTIC_LS , MAGNETIC_LS CARD 2 + INVERSION_POLARITY = 1,//MAGNETIC_LS CARD 2 - must be 1 used for xor the polarity +}LS_POLARITY; typedef enum { @@ -339,7 +339,7 @@ typedef union typedef struct { DISP_TYPE Type; - LS_TYPE LS_Type; + LS_POLARITY LS_Polarity; DISP_EEPROM Write_Disp_EEPROM; DISP_EEPROM Read_Disp_EEPROM; LS_STATUS Status; -- cgit v1.3.1