浏览代码

C/C++ compatibility

Juraj Ďuďák 2 年之前
父节点
当前提交
ac8668c317
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 0
      src/dataframe.c
  2. 2 2
      src/dataframe.h

+ 1 - 0
src/dataframe.c

@@ -35,6 +35,7 @@
 
 #include "dataframe.h"
 
+
 uint8_t *packet;
 static volatile uint8_t length;
 static volatile uint8_t capacity;

+ 2 - 2
src/dataframe.h

@@ -8,13 +8,13 @@
 #ifndef __DATAFRAME_H__
 #define __DATAFRAME_H__
 
+#include "stdint.h"
+
 #ifdef __cplusplus
  extern "C" {
 #endif
 
 
-#include "stdint.h"
-
 
 #define HEADER_CHAR 0xCC