Skip to content

Commit b1b558c

Browse files
ADRV9002: Updated tests since InterfaceGainAvailable isnt filled until connected to device
Signed-off-by: Pagadarai <[email protected]>
1 parent 1d4be43 commit b1b558c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/ADRV9002Tests.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function testADRV9002ManualGainControlError(testCase)
321321
rx.CustomStreamFileName = which('lte_5_cmos_api_68_0_6.stream');
322322

323323
rx.DigitalGainControlModeChannel0 = 'spi';
324-
rx.InterfaceGainChannel0 = rx.InterfaceGainAvailableChannel0{1};
324+
rx.InterfaceGainChannel0 = '0dB';
325325
verifyError(testCase, @() rx(), ?MException);
326326
end
327327

@@ -335,8 +335,9 @@ function testADRV9002ManualGainControl(testCase)
335335
rx.CustomStreamFileName = which('lte_5_cmos_api_68_0_6.stream');
336336

337337
rx.DigitalGainControlModeChannel0 = 'spi';
338-
rx.InterfaceGainChannel0 = rx.InterfaceGainAvailableChannel0{1};
338+
rx.InterfaceGainChannel0 = '0dB';
339339
[~,valid] = rx();
340+
rx.InterfaceGainChannel0 = rx.InterfaceGainAvailableChannel0{1};
340341
testCase.assertTrue(valid);
341342
end
342343

0 commit comments

Comments
 (0)