• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版3f1ad208330222041cf89571b6d3dfeaa43f89ad (tree)
时间2013-03-19 00:31:27
作者alucky4416 <alucky4416@user...>
Commiteralucky4416

Log Message

BUG: usbrh.h #define const move to usbrh.cpp

更改概述

差异

--- a/usbrh.cpp
+++ b/usbrh.cpp
@@ -16,6 +16,20 @@
1616 //#include <string.h>
1717 #include "usbrh.h"
1818
19+#define USBRH_VENDOR 0x1774
20+#define USBRH_PRODUCT 0x1001
21+
22+// parameter
23+// http://www.sensirion.com/en/pdf/product_information/Data_Sheet_humidity_sensor_SHT1x_SHT7x_E.pdf
24+// http://www.syscom-inc.co.jp/pdf/sht_datasheet_j.pdf
25+#define d1 -40.00
26+#define d2 0.01
27+#define c1 -4
28+#define c2 0.0405
29+#define c3 -0.0000028
30+#define t1 0.01
31+#define t2 0.00008
32+
1933 // ---------------------------------------------------------------------------------------
2034
2135 double usbrh::convert_temp(int in)
--- a/usbrh.h
+++ b/usbrh.h
@@ -8,20 +8,6 @@
88 #include <usb.h>
99 #endif
1010
11-#define USBRH_VENDOR 0x1774
12-#define USBRH_PRODUCT 0x1001
13-
14-// parameter
15-// http://www.sensirion.com/en/pdf/product_information/Data_Sheet_humidity_sensor_SHT1x_SHT7x_E.pdf
16-// http://www.syscom-inc.co.jp/pdf/sht_datasheet_j.pdf
17-#define d1 -40.00
18-#define d2 0.01
19-#define c1 -4
20-#define c2 0.0405
21-#define c3 -0.0000028
22-#define t1 0.01
23-#define t2 0.00008
24-
2511 class usbrh
2612 {
2713