From b8d7e426b1e9811f7ced30ce8e14fe8ebad935bc Mon Sep 17 00:00:00 2001 From: Patrick Robbe <robbe@lal.in2p3.fr> Date: Tue, 9 Jul 2019 02:46:49 +0900 Subject: [PATCH] Add check for reading and set address 0x12 --- Pcie40Applications/main_pcie40_b2slc.c | 2 +- Pcie40Libraries/pcie40_b2slc.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Pcie40Applications/main_pcie40_b2slc.c b/Pcie40Applications/main_pcie40_b2slc.c index ecd09f0..f89d9fa 100644 --- a/Pcie40Applications/main_pcie40_b2slc.c +++ b/Pcie40Applications/main_pcie40_b2slc.c @@ -2,7 +2,7 @@ int main(int argc, char *argv[]) { ecs_open( 0 , 2 ) ; - pcie40_readfee8( 0 , 0x10 ) ; + pcie40_readfee8( 0 , 0x12 ) ; ecs_close( 0 , 2 ) ; diff --git a/Pcie40Libraries/pcie40_b2slc.c b/Pcie40Libraries/pcie40_b2slc.c index 69ed7c8..3927962 100644 --- a/Pcie40Libraries/pcie40_b2slc.c +++ b/Pcie40Libraries/pcie40_b2slc.c @@ -24,8 +24,6 @@ int pcie40_readfee8( int dev , int adr) { ret = ecs_write( dev , SLC_BAR , SLC_WFIFO_ADD , (int) ( data_word_1 & 0xFFFFFFFF ) ) ; if ( ret != 0 ) return -1 ; - return 0 ; - // Wait for the result to come back int i ; for ( i=0 ; i<10 ; i++ ) { -- GitLab