We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b73db6 + 3b161b5 commit 5b895adCopy full SHA for 5b895ad
components/utilities/ymodem/ymodem.c
@@ -72,7 +72,7 @@ static enum rym_code _rym_read_code(
72
{
73
/* Fast path */
74
if (rt_device_read(ctx->dev, 0, ctx->buf, 1) == 1)
75
- return *ctx->buf;
+ return (enum rym_code)(*ctx->buf);
76
77
/* Slow path */
78
do {
@@ -85,7 +85,7 @@ static enum rym_code _rym_read_code(
85
/* Try to read one */
86
rsz = rt_device_read(ctx->dev, 0, ctx->buf, 1);
87
if (rsz == 1)
88
89
} while (1);
90
}
91
0 commit comments