dukus / digiCamControl

DSLR camera remote control open source software
http://digicamcontrol.com/
Other
654 stars 224 forks source link

Nikon Z6 - LiveViewImageZoomRatio_ValueChanged not working - Included suggested fix #375

Closed christianniederm closed 2 years ago

christianniederm commented 2 years ago

Hi,

great program. For Nikon Z6 change of LiveViewZoom is not working. I added (UInt16) to Converter.GetBytes in LiveViewImageZoomRatio_ValueChanged in file NikonZ6.cs and now it's working. Please see below.

Best regards, Christian

protected override void LiveViewImageZoomRatio_ValueChanged(object sender, string key, long val) { lock (Locker) { SetProperty(CONST_CMD_SetDevicePropValue, BitConverter.GetBytes((UInt16)val), CONST_CMD_LiveViewZoomArea);
} }

dukus commented 2 years ago

Thanks for the feedback