Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cms_tk_ph2
Ph2_ACF
Commits
ec70281e
Commit
ec70281e
authored
Sep 13, 2021
by
Sarah Seif El Nasr
Browse files
DEBUG - register tester do not write when fail detected
parent
6a894015
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/RegisterTester.cc
View file @
ec70281e
...
...
@@ -51,7 +51,7 @@ void RegisterTester::RegisterTest()
LOG
(
INFO
)
<<
BOLDMAGENTA
<<
"Test"
<<
+
cTestFlavor
<<
" of I2C registers in CBCs .... just going to toggle the page without writing..."
<<
RESET
;
uint8_t
cSortOrder
=
0
;
uint8_t
cFirstPage
=
(
cSortOrder
==
0
)
?
0
:
1
;
std
::
vector
<
uint8_t
>
cPages
{
cFirstPage
,
static_cast
<
uint8_t
>
(
~
cFirstPage
&
0x01
)
,
cFirstPage
};
std
::
vector
<
uint8_t
>
cPages
{
static_cast
<
uint8_t
>
(
~
cFirstPage
&
0x01
),
cFirstPage
,
static_cast
<
uint8_t
>
(
~
cFirstPage
&
0x01
)};
// first I want to record the register map for this map
...
...
@@ -211,7 +211,6 @@ void RegisterTester::RegisterTest()
cSensitiveRegisters
.
clear
();
std
::
vector
<
int
>
cPageToggles
(
0
);
uint8_t
cPreviousPage
=
static_cast
<
CbcInterface
*>
(
fReadoutChipInterface
)
->
GetLastPage
(
cChip
);
for
(
auto
cPage
:
cPages
)
{
LOG
(
INFO
)
<<
BOLDMAGENTA
<<
"
\t\t
.. Going to select page "
<<
+
cPage
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment