[riot-commits] [RIOT-OS/RIOT] c1348c: drivers/mtd_spi_nor: fix poll on init

benpicco noreply at github.com
Mon Feb 22 11:16:49 CET 2021


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c1348c80a0ef3c3d03ca1436e106711d8c9bd406
      https://github.com/RIOT-OS/RIOT/commit/c1348c80a0ef3c3d03ca1436e106711d8c9bd406
  Author: Benjamin Valentin <benpicco at googlemail.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

  Changed paths:
    M drivers/mtd_spi_nor/mtd_spi_nor.c

  Log Message:
  -----------
  drivers/mtd_spi_nor: fix poll on init

The while condition for polling the chip ID is broken, it will always
poll for the max ammount of retries.

Change the condition from `or` to `and` to fix the logic.

fixes #15894


  Commit: 2f919877c0e84048bfaefdc6c7c4fcaf8d900f56
      https://github.com/RIOT-OS/RIOT/commit/2f919877c0e84048bfaefdc6c7c4fcaf8d900f56
  Author: benpicco <benjamin.valentin at ml-pa.com>
  Date:   2021-02-22 (Mon, 22 Feb 2021)

  Changed paths:
    M drivers/mtd_spi_nor/mtd_spi_nor.c

  Log Message:
  -----------
  Merge pull request #15987 from benpicco/drivers/mtd_spi_nor-fix

drivers/mtd_spi_nor: fix poll on init


Compare: https://github.com/RIOT-OS/RIOT/compare/65ffb4261c85...2f919877c0e8


More information about the commits mailing list