diff --git a/openfreebuds/driver/huawei/handler/anc.py b/openfreebuds/driver/huawei/handler/anc.py index 3d3401f..826b87a 100644 --- a/openfreebuds/driver/huawei/handler/anc.py +++ b/openfreebuds/driver/huawei/handler/anc.py @@ -73,11 +73,10 @@ async def on_package(self, pkg: HuaweiSppPackage): # If cancellation turned on and support levels, list them new_props["level"] = self.cancel_level_options.get(data[0], data[0]) new_props["level_options"] = ",".join(self.cancel_level_options.values()) - - if data[1] == 2 and self.w_voice_boost: + elif data[1] == 2 and self.w_voice_boost: # If awareness turned on and support voice boost - new_props["level"] = "voice_boost" if data[0] != 0 else "normal" - new_props["level_options"] = "normal,voice_boost" + new_props["level"] = self.awareness_level_options.get(data[0], data[0]) + new_props["level_options"] = ",".join(self.awareness_level_options.values()) await self.driver.put_property("anc", None, new_props) diff --git a/scripts/build_debian/Makefile b/scripts/build_debian/Makefile index 8e6bcf3..ee2dc6b 100644 --- a/scripts/build_debian/Makefile +++ b/scripts/build_debian/Makefile @@ -12,6 +12,7 @@ install: pip install --upgrade --no-dependencies --target="${DESTDIR}${DIST_PACKAGES_PATH}" ${WHEEL_FILE} mkdir -p ${DESTDIR}/usr/bin mv ${DESTDIR}${DIST_PACKAGES_PATH}/bin/* ${DESTDIR}/usr/bin/ + ln -s ${DESTDIR}/usr/bin/openfreebuds_qt ${DESTDIR}/usr/bin/openfreebuds sed -i '1 s/^.*$$/\#\!\/usr\/bin\/env python3/' ${DESTDIR}/usr/bin/* rm -rf ${DESTDIR}${DIST_PACKAGES_PATH}/bin mkdir -p ${DESTDIR}/usr/share/icons/hicolor/256x256/apps