Skip to content

Commit fc62892

Browse files
authored
Fixed PSWP and writeByte
Fixed PSWP and writeByte function which would incorrectly return true when writing to PSWP-protected area
1 parent fbd95eb commit fc62892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino/SpdReaderWriter/SpdReaderWriter.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ byte readByte(uint8_t deviceAddress, uint16_t offset) {
127127
}
128128

129129
// Writes a byte
130-
bool writeByte(uint8_t deviceAddress, uint16_t offset, uint16_t data) {
130+
bool writeByte(uint8_t deviceAddress, uint16_t offset, byte data) {
131131

132132
adjustPageAddress(offset);
133133

0 commit comments

Comments
 (0)