From f9ff3469f64f9c6f9ca6a23a840e69f956e03e59 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 11 Nov 2014 07:12:16 -0600 Subject: [PATCH] Fix a typo in an I2C header file. From Jahu Niskanen --- arch/arm/src/stm32/chip/stm32_i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/chip/stm32_i2c.h b/arch/arm/src/stm32/chip/stm32_i2c.h index eb523e1847..43c4a972a6 100644 --- a/arch/arm/src/stm32/chip/stm32_i2c.h +++ b/arch/arm/src/stm32/chip/stm32_i2c.h @@ -185,7 +185,7 @@ #define I2C_SR2_SMBDEFAULT (1 << 5) /* Bit 5: SMBus Device Default Address (Slave mode) */ #define I2C_SR2_SMBHOST (1 << 6) /* Bit 6: SMBus Host Header (Slave mode) */ #define I2C_SR2_DUALF (1 << 7) /* Bit 7: Dual Flag (Slave mode) */ -#define I2C_SR2_PEC_SHIFT (1) /* Bits 15-8: Packet Error Checking Register */ +#define I2C_SR2_PEC_SHIFT (8) /* Bits 15-8: Packet Error Checking Register */ #define I2C_SR2_PEC_MASK (0xff << I2C_SR2_PEC_SHIFT) /* Clock control register */