aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--doc/MotionService.md6
-rw-r--r--src/components/ble/MotionService.cpp4
-rw-r--r--src/displayapp/screens/BatteryInfo.h2
-rw-r--r--src/drivers/Cst816s.cpp16
5 files changed, 11 insertions, 19 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 63257ff9..b5880666 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.10)
-project(pinetime VERSION 1.7.0 LANGUAGES C CXX ASM)
+project(pinetime VERSION 1.7.1 LANGUAGES C CXX ASM)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 14)
diff --git a/doc/MotionService.md b/doc/MotionService.md
index 0d0a5514..7cec3fba 100644
--- a/doc/MotionService.md
+++ b/doc/MotionService.md
@@ -3,13 +3,13 @@
The motion service exposes step count and raw X/Y/Z motion value as READ and NOTIFY characteristics.
## Service
-The service UUID is **00020000-78fc-48fe-8e23-433b3a1942d0**
+The service UUID is **00030000-78fc-48fe-8e23-433b3a1942d0**
## Characteristics
-### Step count (UUID 00020001-78fc-48fe-8e23-433b3a1942d0)
+### Step count (UUID 00030001-78fc-48fe-8e23-433b3a1942d0)
The current number of steps represented as a single `uint32_t` (4 bytes) value.
-### Raw motion values (UUID 00020002-78fc-48fe-8e23-433b3a1942d0)
+### Raw motion values (UUID 00030002-78fc-48fe-8e23-433b3a1942d0)
The current raw motion values. This is a 3 `int16_t` array:
- [0] : X
diff --git a/src/components/ble/MotionService.cpp b/src/components/ble/MotionService.cpp
index b4786ab5..284c60dc 100644
--- a/src/components/ble/MotionService.cpp
+++ b/src/components/ble/MotionService.cpp
@@ -5,7 +5,7 @@
using namespace Pinetime::Controllers;
namespace {
- // 0002yyxx-78fc-48fe-8e23-433b3a1942d0
+ // 0003yyxx-78fc-48fe-8e23-433b3a1942d0
constexpr ble_uuid128_t CharUuid(uint8_t x, uint8_t y) {
return ble_uuid128_t{
.u = {.type = BLE_UUID_TYPE_128},
@@ -13,7 +13,7 @@ namespace {
};
}
- // 00020000-78fc-48fe-8e23-433b3a1942d0
+ // 00030000-78fc-48fe-8e23-433b3a1942d0
constexpr ble_uuid128_t BaseUuid() {
return CharUuid(0x00, 0x00);
}
diff --git a/src/displayapp/screens/BatteryInfo.h b/src/displayapp/screens/BatteryInfo.h
index 63454a26..aaa741ce 100644
--- a/src/displayapp/screens/BatteryInfo.h
+++ b/src/displayapp/screens/BatteryInfo.h
@@ -1,8 +1,6 @@
#pragma once
#include <cstdint>
-#include <FreeRTOS.h>
-#include <timers.h>
#include "Screen.h"
#include <lvgl/lvgl.h>
diff --git a/src/drivers/Cst816s.cpp b/src/drivers/Cst816s.cpp
index 4aac19f9..bf51a8ba 100644
--- a/src/drivers/Cst816s.cpp
+++ b/src/drivers/Cst816s.cpp
@@ -32,17 +32,11 @@ bool Cst816S::Init() {
twiMaster.Read(twiAddress, 0xa7, &dummy, 1);
vTaskDelay(5);
- static constexpr uint8_t maxRetries = 3;
- bool isDeviceOk;
- uint8_t retries = 0;
- do {
- isDeviceOk = CheckDeviceIds();
- retries++;
- } while (!isDeviceOk && retries < maxRetries);
-
- if (!isDeviceOk) {
- return false;
- }
+ // TODO This function check that the device IDs from the controller are equal to the ones
+ // we expect. However, it seems to return false positive (probably in case of communication issue).
+ // Also, it seems that some users have pinetimes that works correctly but that report different device IDs
+ // Until we know more about this, we'll just read the IDs but not take any action in case they are not 'valid'
+ CheckDeviceIds();
/*
[2] EnConLR - Continuous operation can slide around