summaryrefslogtreecommitdiff
path: root/src/class/dfu/dfu.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-07-14 16:42:12 +0700
committerhathach <[email protected]>2021-07-14 16:42:12 +0700
commit95ded08e3b96b77bbbb1e11e7f0043fb86b7316f (patch)
treee94b9823e9e349fc878464260ba80a2c77f1eac1 /src/class/dfu/dfu.h
parent5b965a38883efb2d7210d48be6f305c0f31ca8fc (diff)
simplify upload request
Diffstat (limited to 'src/class/dfu/dfu.h')
-rw-r--r--src/class/dfu/dfu.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/class/dfu/dfu.h b/src/class/dfu/dfu.h
index 18de3bf99..88f2f3529 100644
--- a/src/class/dfu/dfu.h
+++ b/src/class/dfu/dfu.h
@@ -95,10 +95,10 @@ typedef enum {
DFU_STATUS_ERRSTALLEDPKT = 0x0F,
} dfu_device_status_t;
-#define DFU_FUNC_ATTR_CAN_DOWNLOAD_BITMASK (1 << 0)
-#define DFU_FUNC_ATTR_CAN_UPLOAD_BITMASK (1 << 1)
-#define DFU_FUNC_ATTR_MANIFESTATION_TOLERANT_BITMASK (1 << 2)
-#define DFU_FUNC_ATTR_WILL_DETACH_BITMASK (1 << 3)
+#define DFU_FUNC_ATTR_CAN_DOWNLOAD_BITMASK (1u << 0)
+#define DFU_FUNC_ATTR_CAN_UPLOAD_BITMASK (1u << 1)
+#define DFU_FUNC_ATTR_MANIFESTATION_TOLERANT_BITMASK (1u << 2)
+#define DFU_FUNC_ATTR_WILL_DETACH_BITMASK (1u << 3)
// DFU Status Request Payload
typedef struct TU_ATTR_PACKED