simplify declaration of GapState_t

This commit is contained in:
Rohit Grover 2015-05-21 11:24:02 +01:00
parent 37fce3e7b7
commit 6a7c543d86

View file

@ -62,10 +62,10 @@ public:
};
/* Describes the current state of the device (more than one bit can be set) */
typedef struct GapState_s {
struct GapState_t {
unsigned advertising : 1; /**< peripheral is currently advertising */
unsigned connected : 1; /**< peripheral is connected to a central */
} GapState_t;
};
typedef uint16_t Handle_t;