aboutsummaryrefslogtreecommitdiff
path: root/spiflash_n25q128.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2017-02-19 14:14:10 -0500
committerPaul Selkirk <paul@psgd.org>2017-02-19 17:58:57 -0500
commit742cbe3d4090d62ee5f871e487ce88145d12c04e (patch)
tree3232ea6814a624c482a22f20b0eb250b983cba9b /spiflash_n25q128.c
parent1dc664a90471f165855c737c5ae649d01897b2d6 (diff)
Simplify spiflash test code slightly, add keystore test code.
Diffstat (limited to 'spiflash_n25q128.c')
-rw-r--r--spiflash_n25q128.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spiflash_n25q128.c b/spiflash_n25q128.c
index 68f96f1..371bef2 100644
--- a/spiflash_n25q128.c
+++ b/spiflash_n25q128.c
@@ -220,7 +220,7 @@ inline int _wait_while_wip(struct spiflash_ctx *ctx, uint32_t timeout)
int i;
while (timeout--) {
i = n25q128_get_wip_flag(ctx);
- if (i < 0) return 0; // impossible
+ if (i < 0) return 0;
if (! i) break;
HAL_Delay(10);
}