ソースを参照

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,8 +41,8 @@ typedef enum
41 41
 
42 42
 typedef struct __attribute__((packed)) BITFIELD_PACKET_COUNT_ELEMENT
43 43
 {
44
-	uint8_t elementCount : 3;
45 44
 	uint8_t packetType : 5;
45
+	uint8_t elementCount : 3;
46 46
 } BITFIELD_PACKET_COUNT_ELEMENT;
47 47
 
48 48
 typedef struct __attribute__((packed)) PACKET

読み込み中…
キャンセル
保存