ricohapi / theta-client

A library to control RICOH THETA
MIT License
15 stars 11 forks source link

EV値のSetOptionsに失敗する #2

Closed kksk-github closed 1 year ago

kksk-github commented 1 year ago

SetOptionsでEV値を設定しようとした際、下記エラーログが出る。ISO値を設定した場合は成功する。

[Error: No enum constant com.ricoh360.thetaclient.ThetaRepository.ExposureCompensationEnum.P_2_0]

コードは以下

      const options: Options = {iso: IsoEnum.ISO_2000};
      setOptions(options).then(...
simago commented 1 year ago

react-native/src/index.tsxのExposureCompensationEnumの定義で、P2_0とすべき所が誤ってP_2_0となっていました。修正します。

simago commented 1 year ago

Fixed by https://github.com/ricohapi/theta-client/commit/4c2ffcdbc90b409ee623443949d2b379c50bb13a