Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICBM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
detectors
DSSC
ICBM
Commits
75c14daf
Commit
75c14daf
authored
3 months ago
by
Cyril Danilevski
Committed by
Cyril Danilevski
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Validate MCP port expander logic
Add poll once on start to have accurate information on webpage
parent
bd36aa98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#162433
passed
2 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pins.cpp
+2
-2
2 additions, 2 deletions
pins.cpp
with
2 additions
and
2 deletions
pins.cpp
+
2
−
2
View file @
75c14daf
...
@@ -39,7 +39,7 @@ void isr_check_loop()
...
@@ -39,7 +39,7 @@ void isr_check_loop()
Serial
.
print
(
regval
,
BIN
);
Serial
.
print
(
regval
,
BIN
);
uint8_t
mask
=
1
<<
0
;
uint8_t
mask
=
1
<<
0
;
if
((
regval
&
mask
))
{
if
(
!
(
regval
&
mask
))
{
Serial
.
print
(
" UPS"
);
Serial
.
print
(
" UPS"
);
PINS
.
ups
=
true
;
PINS
.
ups
=
true
;
}
}
...
@@ -71,7 +71,7 @@ void poll_port_expander()
...
@@ -71,7 +71,7 @@ void poll_port_expander()
int
regval
=
MCP
.
read8
();
int
regval
=
MCP
.
read8
();
uint8_t
mask
=
1
<<
0
;
uint8_t
mask
=
1
<<
0
;
if
((
regval
&
mask
))
{
if
(
!
(
regval
&
mask
))
{
Serial
.
print
(
" UPS"
);
Serial
.
print
(
" UPS"
);
PINS
.
ups
=
true
;
PINS
.
ups
=
true
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment