Skip to content

Commit

Permalink
Merge pull request #171 from mcci-catena/issue170
Browse files Browse the repository at this point in the history
Fix #170: Updated the size of the standard key for BME680
  • Loading branch information
dhineshkumarmcci authored May 22, 2019
2 parents d78a0c1 + 3b9315d commit 553dd7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/CatenaBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Copyright notice:
Ithaca, NY 14850
An unpublished work. All rights reserved.
This file is released under terms of the accompanying LICENSE file.
Author:
Expand Down Expand Up @@ -91,7 +91,7 @@ Revision history:
#define CATENA_ARDUINO_PLATFORM_VERSION_CALC(major, minor, patch, local) \
(((major) << 24u) | ((minor) << 16u) | ((patch) << 8u) | (local))

#define CATENA_ARDUINO_PLATFORM_VERSION CATENA_ARDUINO_PLATFORM_VERSION_CALC(0, 14, 0, 63) /* v0.14.0.63 */
#define CATENA_ARDUINO_PLATFORM_VERSION CATENA_ARDUINO_PLATFORM_VERSION_CALC(0, 14, 0, 70) /* v0.14.0.70 */

#define CATENA_ARDUINO_PLATFORM_VERSION_GET_MAJOR(v) \
(((v) >> 24u) & 0xFFu)
Expand Down Expand Up @@ -188,7 +188,7 @@ class CatenaBase
fHasLuxSi1113 = fHasLuxSi1133,
// platform has BME680
fHasBme680 = 1 << 15,
// platform has RS485 on Serial1, with A3
// platform has RS485 on Serial1, with A3
// controlling power and A4 controlling TXE
fHasRS485 = 1 << 16,
// platform uses A2 to control VOUT1 (on terminals)
Expand Down
16 changes: 8 additions & 8 deletions src/lib/Catena_FramStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ Copyright notice:
Ithaca, NY 14850
An unpublished work. All rights reserved.
This file is proprietary information, and may not be disclosed or
copied without the prior permission of MCCI Corporation.
Author:
Terry Moore, MCCI Corporation March 2017
Expand All @@ -46,7 +46,7 @@ using namespace McciCatena;

const MCCIADK_GUID_WIRE McciCatena::cFramStorage::skFramGuid = GUID_FRAM_CATENA_V1(WIRE);

const cFramStorage::StandardItem
const cFramStorage::StandardItem
McciCatena::cFramStorage::vItemDefs[cFramStorage::kMAX] =
{
cFramStorage::StandardItem(kHeader, sizeof(uint32_t), /* number */ true),
Expand All @@ -66,8 +66,8 @@ McciCatena::cFramStorage::vItemDefs[cFramStorage::kMAX] =
cFramStorage::StandardItem(kBootCount, sizeof(uint32_t), /* number */ true),
cFramStorage::StandardItem(kOperatingFlags, sizeof(uint32_t), /* number */ true),

/* the size field should match BSEC_MAX_STATE_BLOB_SIZE, whcich is 65 */
cFramStorage::StandardItem(kBme680Cal, 65, /* number */ false),
/* the size field should match BSEC_MAX_STATE_BLOB_SIZE, whcich is 139 */
cFramStorage::StandardItem(kBme680Cal, 139, /* number */ false),
};


Expand Down Expand Up @@ -162,13 +162,13 @@ Name: McciCatena::cFramStorage::Object::matchesGuid()
Check whether this object is identified by given GUID.
Definition:
public: bool
public: bool
McciCatena::cFramStorage::Object::matchesGuid(
const MCCIADK_GUID_WIRE &guid
) const;
Description:
Simply compares the GUID to the one in the object.
Simply compares the GUID to the one in the object.
Returns:
true for equality.
Expand All @@ -183,7 +183,7 @@ Name: McciCatena::cFramStorage::Object::matchesGuid()
*/

bool
bool
McciCatena::cFramStorage::Object::matchesGuid(
const MCCIADK_GUID_WIRE &guid
) const
Expand Down

0 comments on commit 553dd7f

Please sign in to comment.