Git
Wiki
Site
projects
/
soft
/
lpc122x
/
scialys
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a258a97
)
Fix overvoltage detection for electrical test version
author
Nathael Pajani
<nathael.pajani@ed3l.fr>
Fri, 24 Nov 2023 22:57:05 +0000
(23:57 +0100)
committer
Nathael Pajani
<nathael.pajani@ed3l.fr>
Fri, 24 Nov 2023 22:57:05 +0000
(23:57 +0100)
tests_elec/main.c
patch
|
blob
|
history
diff --git
a/tests_elec/main.c
b/tests_elec/main.c
index
cdf3b49
..
1f649c3
100644
(file)
--- a/
tests_elec/main.c
+++ b/
tests_elec/main.c
@@
-322,7
+322,7
@@
void mode_update(void)
temp_shutdown = (gpio_read(overtemperature_pin) ? 0 : 1);
/* Update Over-Voltage information */
if (overvoltage > 0) {
- uint8_t ov_tmp = (gpio_read(overvoltage_pin) ?
0 : 1
);
+ uint8_t ov_tmp = (gpio_read(overvoltage_pin) ?
1 : 0
);
if (ov_tmp == 0) {
overvoltage--;
}
Techno-Innov
42 impasse de la Combe du Bois
01150 Blyes - France
contact@techno-innov.fr
Design et hébergement du site :
Techno-Innov
Techno-Innov
- SARL Coopérative
539 169 417 RCS Bourg-en-Bresse
Ce site n'utilise pas de cookies, désolé pour les gourmands !