Skip to content

Commit

Permalink
fix some more implicit-fallthrough warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger authored and podhrmic committed Jan 4, 2018
1 parent a16de3d commit 24d6cdb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions sw/airborne/boards/lisa_l/baro_board.c
Expand Up @@ -110,6 +110,7 @@ void baro_periodic(void)
break;
case LBS_INITIALIZING_DIFF_1:
baro_board.running = true;
/* Falls through. */
case LBS_READ_DIFF:
baro_board_read_from_current_register(BARO_ABS_ADDR);
baro_board.status = LBS_READING_ABS;
Expand Down
1 change: 1 addition & 0 deletions sw/airborne/peripherals/adxl345_spi.c
Expand Up @@ -145,6 +145,7 @@ void adxl345_spi_event(struct Adxl345_Spi *adxl)
switch (adxl->spi_trans.status) {
case SPITransFailed:
adxl->init_status--; // Retry config (TODO max retry)
/* Falls through. */
case SPITransSuccess:
case SPITransDone:
adxl->spi_trans.status = SPITransDone;
Expand Down
1 change: 1 addition & 0 deletions sw/airborne/peripherals/mpu60x0_i2c.c
Expand Up @@ -117,6 +117,7 @@ void mpu60x0_i2c_event(struct Mpu60x0_I2c *mpu)
switch (mpu->i2c_trans.status) {
case I2CTransFailed:
mpu->config.init_status--; // Retry config (TODO max retry)
/* Falls through. */
case I2CTransSuccess:
case I2CTransDone:
mpu60x0_send_config(mpu60x0_i2c_write_to_reg, (void *)mpu, &(mpu->config));
Expand Down
1 change: 1 addition & 0 deletions sw/airborne/peripherals/mpu60x0_spi.c
Expand Up @@ -149,6 +149,7 @@ void mpu60x0_spi_event(struct Mpu60x0_Spi *mpu)
switch (mpu->spi_trans.status) {
case SPITransFailed:
mpu->config.init_status--; // Retry config (TODO max retry)
/* Falls through. */
case SPITransSuccess:
case SPITransDone:
mpu60x0_send_config(mpu60x0_spi_write_to_reg, (void *)mpu, &(mpu->config));
Expand Down

0 comments on commit 24d6cdb

Please sign in to comment.