host: matlab: fix tx_gain property handling in simulink
processTunedPropertiesImpl() was not updated during the migration from tx_vga1+tx_vga2 to tx_gain. h/t mando238 Fixes #654
This commit is contained in:
parent
57b111fc05
commit
74a876d274
1 changed files with 4 additions and 11 deletions
|
|
@ -488,18 +488,11 @@ classdef bladeRF_Simulink < matlab.System & ...
|
|||
%disp('Updated TX frequency');
|
||||
end
|
||||
|
||||
if isChangedProperty(obj, 'tx_vga1') && obj.tx_vga1 ~= obj.curr_tx_vga1
|
||||
obj.device.tx.vga1 = obj.tx_vga1;
|
||||
obj.curr_tx_vga1 = obj.device.tx.vga1;
|
||||
%disp('Updated TX VGA1 gain');
|
||||
if isChangedProperty(obj, 'tx_gain') && obj.tx_gain ~= obj.curr_tx_gain
|
||||
obj.device.tx.gain = obj.tx_gain;
|
||||
obj.curr_tx_gain = obj.device.tx.gain;
|
||||
%disp('Updated TX gain');
|
||||
end
|
||||
|
||||
if isChangedProperty(obj, 'tx_vga2') && obj.tx_vga2 ~= obj.curr_tx_vga2
|
||||
obj.device.tx.vga2 = obj.tx_vga2;
|
||||
obj.curr_tx_vga2 = obj.device.tx.vga2;
|
||||
%disp('Updated TX VGA2 gain');
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function validatePropertiesImpl(obj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue