mpExperienceSiri: let the user specify the autocorking value

This commit is contained in:
Quentin De Coninck 2016-06-21 17:28:18 +02:00
parent 758933b342
commit 2fbd82e212

View File

@ -43,8 +43,6 @@ class MpExperienceSiri(MpExperience):
self.max_payload_size = self.xpParam.getParam(MpParamXp.SIRIMAXPAYLOADSIZE) self.max_payload_size = self.xpParam.getParam(MpParamXp.SIRIMAXPAYLOADSIZE)
self.interval_time_ms = self.xpParam.getParam(MpParamXp.SIRIINTERVALTIMEMS) self.interval_time_ms = self.xpParam.getParam(MpParamXp.SIRIINTERVALTIMEMS)
self.buffer_size = self.xpParam.getParam(MpParamXp.SIRIBUFFERSIZE) self.buffer_size = self.xpParam.getParam(MpParamXp.SIRIBUFFERSIZE)
# Little trick here
self.xpParam.defaultValue[MpParamXp.AUTOCORK] = "0"
def prepare(self): def prepare(self):
MpExperience.prepare(self) MpExperience.prepare(self)