summaryrefslogtreecommitdiff
path: root/test/kb_scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/kb_scan.c')
-rw-r--r--test/kb_scan.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/kb_scan.c b/test/kb_scan.c
index b3b42813e4..a43808c0c1 100644
--- a/test/kb_scan.c
+++ b/test/kb_scan.c
@@ -557,7 +557,9 @@ static int test_check_boot_down(void)
void test_init(void)
{
- uint32_t state = system_get_scratchpad();
+ uint32_t state;
+
+ system_get_scratchpad(&state);
if (state & TEST_STATE_MASK(TEST_STATE_STEP_2)) {
/* Power-F3-ESC */