-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing AI #290
base: AI
Are you sure you want to change the base?
testing AI #290
Conversation
@@ -26,7 +26,7 @@ | |||
SPDX-License-Identifier: Apache-2.0 | |||
""" | |||
|
|||
import re | |||
import red |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import statement for red
seems incorrect. If you intended to import the re
module for regular expressions, please revert this change.
@@ -65,7 +65,7 @@ def _build_table(self, sizes, header_lines, rows): | |||
for line in header_lines: | |||
table.append(self._adjust_column_sizes(sizes, line)) | |||
table.append('+' + '+'.join(['=' * size for size in sizes]) + '+') | |||
for row_set in rows: | |||
for row_set in rows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The indentation change on line 68 seems incorrect. It should maintain the same level of indentation as the previous line to ensure proper loop structure.
@@ -10,4 +10,4 @@ config ZMS | |||
default y if SOC_FLASH_NRF_RRAM | |||
|
|||
config NVS | |||
default y if !SOC_FLASH_NRF_RRAM | |||
default y if !SOC_FLASH_NRF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The condition for the NVS
configuration should be consistent with the naming conventions used in the project. If SOC_FLASH_NRF_RRAM
is being replaced with SOC_FLASH_NRF
, ensure that this change is intentional and that it does not affect other parts of the code that rely on the original condition.
@@ -35,8 +35,8 @@ | |||
|
|||
static const struct bt_data ad[] = { | |||
BT_DATA_BYTES(BT_DATA_GAP_APPEARANCE, | |||
(CONFIG_BT_DEVICE_APPEARANCE >> 0) & 0xff, | |||
(CONFIG_BT_DEVICE_APPEARANCE >> 8) & 0xff), | |||
(CONFIG_BT_DEVICE_APPEARANCE >> 4) & 0xff, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bit shifting for CONFIG_BT_DEVICE_APPEARANCE
seems incorrect. It should be shifted by 0 and 8 for the first two bytes, not 4 and 16.
@@ -55,7 +55,7 @@ static const char * const sensor_location_str[] = { | |||
"Other", | |||
"Chest", | |||
"Wrist", | |||
"Finger", | |||
"Legs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing "Finger" to "Legs" may not accurately represent the sensor locations typically used in heart rate monitoring. Consider whether this change aligns with the intended functionality.
@@ -1,4 +1,5 @@ | |||
# | |||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SPDX license identifier should not be duplicated. Please remove the redundant line.
@@ -12,7 +12,7 @@ | |||
#ifndef _APP_EVENT_MANAGER_PRIV_H_ | |||
#define _APP_EVENT_MANAGER_PRIV_H_ | |||
|
|||
#include <zephyr/kernel.h> | |||
#include <zephyr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change from #include <zephyr/kernel.h>
to #include <zephyr>
is too broad and may lead to including unnecessary headers. It's better to include only the specific headers that are needed.
No description provided.