From de87b64728ef28264b622b3583442038a231c90f Mon Sep 17 00:00:00 2001
From: Stephane D'Alu <sdalu@sdalu.com>
Date: Sun, 7 Feb 2016 19:26:02 +0100
Subject: small fix

---
 os/various/devices_lib/sensors/mcp9808/mcp9808.h | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

(limited to 'os/various/devices_lib')

diff --git a/os/various/devices_lib/sensors/mcp9808/mcp9808.h b/os/various/devices_lib/sensors/mcp9808/mcp9808.h
index 74540b4..6a8725d 100644
--- a/os/various/devices_lib/sensors/mcp9808/mcp9808.h
+++ b/os/various/devices_lib/sensors/mcp9808/mcp9808.h
@@ -44,7 +44,6 @@ typedef enum __attribute__ ((__packed__)) {
     MCP9808_ERROR     = 6,            /**< Error.                          */
 } MCP9808_state_t;
 
-
 /**
  * @brief   MCP9808 configuration structure.
  */
@@ -55,6 +54,13 @@ typedef struct {
     uint16_t             cfg;
 } MCP9808_drv;
 
+/**
+ * @brief   MCP9808 measure reading
+ */
+typedef struct {
+    float temperature;
+} MCP9808_measure;
+
 /**
  * @brief   Initialize the sensor driver
  */
@@ -102,7 +108,7 @@ MCP9808_setResolution(MCP9808_drv *drv,
 static inline unsigned int
 MCP9808_getBootupTime(MCP9808_drv *drv) {
     (void)drv;
-    return 15;
+    return 0; /* no info found */
 };
 
 /**
@@ -114,7 +120,7 @@ MCP9808_getBootupTime(MCP9808_drv *drv) {
 static inline unsigned int
 MCP9808_getStartupTime(MCP9808_drv *drv) {
     (void)drv;
-    return 0;
+    return 0; /* no info found */
 };
 
 /**
@@ -131,6 +137,7 @@ MCP9808_getAcquisitionTime(MCP9808_drv *drv);
  */
 static inline msg_t
 MCP9808_startMeasure(MCP9808_drv *drv) {
+    return MSG_OK;
 }
 
 /**
-- 
cgit v1.2.3