summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJin Yoon <jinny.yoon@samsung.com>2019-12-14 11:17:30 +0900
committerJin Yoon <jinny.yoon@samsung.com>2019-12-14 11:17:30 +0900
commit4c984dd633d331d121fe7f318d444fce9085bd3b (patch)
treef666a281ffe189e93f02250dee5cc089555ce5c1
parenta0503506ce15af40aceceb7af50b458b25b4e087 (diff)
downloadrcc-illuminance.tar.gz
rcc-illuminance.tar.bz2
rcc-illuminance.zip
Additional parentheses have been added.illuminance
Change-Id: Id2089c04b6066dd3bb0ac2bdb9a13932799c35fe
-rw-r--r--src/resource/resource_illuminance_sensor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resource/resource_illuminance_sensor.c b/src/resource/resource_illuminance_sensor.c
index 975a8e5..302c5da 100644
--- a/src/resource/resource_illuminance_sensor.c
+++ b/src/resource/resource_illuminance_sensor.c
@@ -24,10 +24,10 @@
#include "log.h"
#include "resource_internal.h"
-#define I2C_PIN_MAX 28
+#define I2C_PIN_MAX (28)
/* I2C */
-#define GY30_ADDR 0x23 /* Address of GY30 light sensor */
-#define GY30_CONT_HIGH_RES_MODE 0x10 /* Start measurement at 11x resolution. Measurement time is approx 120mx */
+#define GY30_ADDR (0x23) /* Address of GY30 light sensor */
+#define GY30_CONT_HIGH_RES_MODE (0x10) /* Start measurement at 11x resolution. Measurement time is approx 120mx */
#define GY30_CONSTANT_NUM (1.2)
static struct {