浏览代码

Fix order of the element count and packet type bit field

Bernd Gottschlag 5 年前
父节点
当前提交
58a48e5230
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      weather-sensor/firmware/nrf24l01.h

+ 1
- 1
weather-sensor/firmware/nrf24l01.h 查看文件

41
 
41
 
42
 typedef struct __attribute__((packed)) BITFIELD_PACKET_COUNT_ELEMENT
42
 typedef struct __attribute__((packed)) BITFIELD_PACKET_COUNT_ELEMENT
43
 {
43
 {
44
-	uint8_t elementCount : 3;
45
 	uint8_t packetType : 5;
44
 	uint8_t packetType : 5;
45
+	uint8_t elementCount : 3;
46
 } BITFIELD_PACKET_COUNT_ELEMENT;
46
 } BITFIELD_PACKET_COUNT_ELEMENT;
47
 
47
 
48
 typedef struct __attribute__((packed)) PACKET
48
 typedef struct __attribute__((packed)) PACKET

正在加载...
取消
保存