Skip to content

Commit 499e18e

Browse files
zfieldsCopilot
andauthored
fix: typo caught in code review
Co-authored-by: Copilot <[email protected]>
1 parent 2cd8061 commit 499e18e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/NoteI2c_Arduino.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ NoteI2c_Arduino::receive (
9898
result = ERRSTR("i2c|rx: timeout {io}{i2c}",i2cerr);
9999
break;
100100
default:
101-
result = ERRSTR("i2c|rx: unknown error encounter during I2C transmission {io}{i2c}",i2cerr);
101+
result = ERRSTR("i2c|rx: unknown error encountered during I2C transmission {io}{i2c}",i2cerr);
102102
}
103103

104104
// Read and cache response from Notecard
@@ -196,7 +196,7 @@ NoteI2c_Arduino::transmit (
196196
result = ERRSTR("i2c|tx: timeout {io}{i2c}",i2cerr);
197197
break;
198198
default:
199-
result = ERRSTR("i2c|tx: unknown error encounter during I2C transmission {io}{i2c}",i2cerr);
199+
result = ERRSTR("i2c|tx: unknown error encountered during I2C transmission {io}{i2c}",i2cerr);
200200
}
201201

202202
return result;

test/NoteI2c_Arduino.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ int test_notei2c_arduino_receive_returns_error_message_on_unexpected_i2c_transmi
996996
// Arrange
997997
const uint16_t EXPECTED_ADDRESS = 0x17;
998998
const uint8_t REQUEST_SIZE = 13;
999-
const char * EXPECTED_RESULT = "i2c|rx: unknown error encounter during I2C transmission {io}{i2c}";
999+
const char * EXPECTED_RESULT = "i2c|rx: unknown error encountered during I2C transmission {io}{i2c}";
10001000
uint8_t response_buffer[32];
10011001
uint32_t bytes_remaining;
10021002

@@ -1658,7 +1658,7 @@ int test_notei2c_arduino_transmit_returns_error_message_on_unexpected_i2c_transm
16581658
const uint16_t EXPECTED_ADDRESS = 0x17;
16591659
uint8_t write_buffer[17] = {'H','e','l','l','o',',',' ','N','o','t','e','c','a','r','d','!','\0'};
16601660
const uint8_t REQUEST_SIZE = sizeof(write_buffer);
1661-
const char * EXPECTED_RESULT = "i2c|tx: unknown error encounter during I2C transmission {io}{i2c}";
1661+
const char * EXPECTED_RESULT = "i2c|tx: unknown error encountered during I2C transmission {io}{i2c}";
16621662

16631663
twoWireBeginTransmission_Parameters.reset();
16641664
twoWireWriteByte_Parameters.reset();

0 commit comments

Comments
 (0)