Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zfields
Copy link
Contributor

@zfields zfields commented Aug 26, 2025

To enable "receive only" transactions (i.e {heartbeat}), I needed to first ensure zero length transmissions do not cause failures. Then I also attempted to homogenize _i2cNoteTransaction() and _serialNoteTransaction().

@zfields zfields requested review from Bucknalla and Copilot August 26, 2025 00:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enables "receive only" transactions by handling zero-length requests and harmonizes the implementation between I2C and serial transaction functions.

  • Adds protection against zero-length request transmission in both I2C and serial interfaces
  • Harmonizes error handling and variable declarations between _i2cNoteTransaction() and _serialNoteTransaction()
  • Improves the chunked transmission loop in _serialChunkedTransmit() for better clarity and performance

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
n_serial.c Adds zero-length request handling, harmonizes error handling, and refactors chunked transmission loop
n_i2c.c Adds zero-length request handling and harmonizes error handling with serial implementation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@Bucknalla Bucknalla left a comment

Choose a reason for hiding this comment

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

LGTM

@zfields zfields merged commit 8446071 into master Aug 26, 2025
12 of 13 checks passed
@zfields zfields deleted the zak-zero-req branch August 26, 2025 14:41
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.

3 participants