Skip to content

Commit 8acbb94

Browse files
committed
master fix permissions definition
1 parent e8317c2 commit 8acbb94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

freemodbus/common/include/esp_modbus_master.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <stdint.h> // for standard int types definition
1111
#include <stddef.h> // for NULL and std defines
12-
#include "soc/soc.h" // for BITN definitions
12+
#include "esp_bit_defs.h" // for BITN definitions
1313
#include "esp_modbus_common.h" // for common types
1414

1515
#ifdef __cplusplus
@@ -112,9 +112,9 @@ typedef union {
112112
* @brief Permissions for the characteristics
113113
*/
114114
typedef enum {
115-
PAR_PERMS_READ = 1 << BIT0, /**< the characteristic of the device are readable */
116-
PAR_PERMS_WRITE = 1 << BIT1, /**< the characteristic of the device are writable*/
117-
PAR_PERMS_TRIGGER = 1 << BIT2, /**< the characteristic of the device are triggerable */
115+
PAR_PERMS_READ = BIT0, /**< the characteristic of the device are readable */
116+
PAR_PERMS_WRITE = BIT1, /**< the characteristic of the device are writable*/
117+
PAR_PERMS_TRIGGER = BIT2, /**< the characteristic of the device are triggerable */
118118
PAR_PERMS_READ_WRITE = PAR_PERMS_READ | PAR_PERMS_WRITE, /**< the characteristic of the device are readable & writable */
119119
PAR_PERMS_READ_TRIGGER = PAR_PERMS_READ | PAR_PERMS_TRIGGER, /**< the characteristic of the device are readable & triggerable */
120120
PAR_PERMS_WRITE_TRIGGER = PAR_PERMS_WRITE | PAR_PERMS_TRIGGER, /**< the characteristic of the device are writable & triggerable */

0 commit comments

Comments
 (0)