diff --git a/mpf/devices/driver.py b/mpf/devices/driver.py index e082f597e..cef32c182 100644 --- a/mpf/devices/driver.py +++ b/mpf/devices/driver.py @@ -46,17 +46,17 @@ def __init__(self, machine, name, config, collection=None): self.log.debug("Creating '%s' with config: %s", name, config) if 'pulse_ms' not in self.config: - # If there's a holdPatter and no pulse_ms, we'll keep it at zero - if 'holdPatter' in self.config: + # If there's a holdpatter and no pulse_ms, we'll keep it at zero + if 'holdpatter' in self.config: self.config['pulse_ms'] = 0 # Otherwise we'll use the system default for pulse_ms else: self.config['pulse_ms'] = \ self.machine.config['mpf']['default_pulse_ms'] - if 'holdPatter' in self.config: - self.config['pwm_on'] = int(config['holdPatter'].split('-')[0]) - self.config['pwm_off'] = int(config['holdPatter'].split('-')[1]) + if 'holdpatter' in self.config: + self.config['pwm_on'] = int(config['holdpatter'].split('-')[0]) + self.config['pwm_off'] = int(config['holdpatter'].split('-')[1]) else: self.config['pwm_on'] = 0 self.config['pwm_off'] = 0 @@ -70,8 +70,8 @@ def __init__(self, machine, name, config, collection=None): def enable(self): """Enables a driver by holding it 'on'. - If this driver is configured with a holdPatter, then this method will use - that holdPatter to pwm pulse the driver. + If this driver is configured with a holdpatter, then this method will use + that holdpatter to pwm pulse the driver. If not, then this method will just enable the driver. As a safety precaution, if you want to enable() this driver without pwm, then you diff --git a/version.py b/version.py index 5471a6c35..c965edb0e 100644 --- a/version.py +++ b/version.py @@ -1,4 +1,4 @@ -__version_info__ = ('0', '17', '0') +__version_info__ = ('0', '17', '1') __version__ = '.'.join(__version_info__) __bcp_version_info__ = ('1', '0')