projects
/
gram.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1466f22
)
Fix output in gram_read_burstdet
author
Jean THOMAS
<git0@pub.jeanthomas.me>
Thu, 30 Jul 2020 15:08:26 +0000
(17:08 +0200)
committer
Jean THOMAS
<git0@pub.jeanthomas.me>
Thu, 30 Jul 2020 15:08:26 +0000
(17:08 +0200)
libgram/src/calibration.c
patch
|
blob
|
history
diff --git
a/libgram/src/calibration.c
b/libgram/src/calibration.c
index ea337c8e9484f8bce49d7e3c1d1bcbd128f18d66..e979dee82ea77e5d3fa703bf94fffa301aa6743e 100644
(file)
--- a/
libgram/src/calibration.c
+++ b/
libgram/src/calibration.c
@@
-62,9
+62,9
@@
void gram_reset_burstdet(const struct gramCtx *ctx) {
bool gram_read_burstdet(const struct gramCtx *ctx, int phase) {
#ifdef GRAM_RW_FUNC
- return
gram_read(ctx, &(ctx->phy->burstdet)) & (1 << phase
);
+ return
!!(gram_read(ctx, &(ctx->phy->burstdet)) & (1 << phase)
);
#else
- return
ctx->phy->burstdet & (1 << phase
);
+ return
!!(ctx->phy->burstdet & (1 << phase)
);
#endif
}