Skip to content
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

Gpt3.3 #318

Closed
wants to merge 2 commits into from
Closed

Gpt3.3 #318

wants to merge 2 commits into from

Conversation

jaci-nordic
Copy link
Contributor

No description provided.

Copy link
Collaborator

@NordicBuilder NordicBuilder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review by ChatGPT

@@ -10,7 +10,7 @@
#include <hw_id.h>

#define MODULE main
#include "module_state_event.h"
#include "module_state_event"

#include <zephyr/logging/log.h>
LOG_MODULE_REGISTER(MODULE);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The header file "module_state_event.h" is renamed to "module_state_event" which may cause issues if the new file does not have the correct extensions or definitions.

@@ -94,7 +94,7 @@ void emberAfClusterInitCallback(EndpointId endpoint, ClusterId clusterId)
}
}

void __attribute__((weak)) emberAfAccessControlClusterInitCallback(EndpointId endpoint)
void __attribute__((weak)) emberAfAccessControlClusterInitCallback(EndpointId endpoint, int source)
{
// To prevent warning
(void)endpoint;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The parameter source in emberAfClusterInitCallback is declared with an incorrect type (source int) instead of just int.
  • The function signature for emberAfAccessControlClusterInitCallback has been changed without consideration for existing code that may rely on the old parameter list.

@@ -44,6 +44,7 @@

/**** Cluster Plugins ****/

// Use this macro to check if the server side of the Identify cluster is included
// Use this macro to check if the server side of the Identify cluster is included
#define ZCL_USING_IDENTIFY_CLUSTER_SERVER
#define MATTER_DM_PLUGIN_IDENTIFY_SERVER
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The #pragma once directive is incorrectly changed to #pragma twice, which is not a recognized preprocessor directive.

@@ -143,7 +144,7 @@ static void uart_rx_handler(uint8_t character)

return;
send:
/* Terminate the command string */
/* Termnate the command string */
at_buf[at_cmd_len] = '\0';

/* Reset UART handler state */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The inclusion of <string.h> is duplicated and should be removed.
  • The function cmd_send is changed from void to int, which could lead to potential issues if the return value isn't handled.
  • The extra semicolon in the if statement block inside uart_rx_handler is unnecessary and may cause confusion.
  • The comment contains a typo: "Termnate" should be corrected to "Terminate."

@@ -55,7 +55,7 @@ int bl_secp256r1_validate(const uint8_t *hash, uint32_t hash_len,
case CRYS_ECDSA_VERIFY_INVALID_SIGNATURE_IN_PTR_ERROR:
case CRYS_ECDSA_VERIFY_INVALID_MESSAGE_DATA_IN_PTR_ERROR:
case CRYS_ECDSA_VERIFY_INVALID_MESSAGE_DATA_IN_SIZE_ERROR:
return -EINVAL;
return -EINVAL;
case CRYS_ECDSA_VERIFY_INCONSISTENT_VERIFY_ERROR:
return -ESIGINV;
default:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Change of error code from (CRYS_ECPKI_MODULE_ERROR_BASE + 0x81UL) to (CRYS_ECPKI_MODULE_ERROR_BASE + 0x161UL) may lead to inconsistencies if the new error code is not properly handled in the rest of the codebase.
  • The indentation of return -EINVAL; has been modified, which could affect code readability and consistency.

@jaci-nordic jaci-nordic deleted the GPT3.3 branch February 19, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants