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:
Rey Tucker 2018-09-24 17:38:22 -04:00 • committed by Rey Tucker
commit 74a876d274

View file

@ -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)