From 5bf828ec5d1dcf07268652a0b53ef4322ec9cd1f Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 8 Apr 2016 13:31:45 +0200 Subject: [PATCH] Fixed compatibility issue with Coffeescript 1.9 as required for pimatic 0.9 --- filter.coffee | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/filter.coffee b/filter.coffee index 7bf1108..a90814d 100644 --- a/filter.coffee +++ b/filter.coffee @@ -25,10 +25,10 @@ module.exports = (env) -> class SimpleMovingAverageFilter extends env.devices.Device constructor: (@config, lastState) -> - @id = config.id - @name = config.name - @size = config.size - @output = config.output + @id = @config.id + @name = @config.name + @size = @config.size + @output = @config.output @filterValues = [] @sum = 0.0 @mean = 0.0 @@ -110,10 +110,10 @@ module.exports = (env) -> class SimpleTruncatedMeanFilter extends env.devices.Device constructor: (@config, lastState) -> - @id = config.id - @name = config.name - @size = config.size - @output = config.output + @id = @config.id + @name = @config.name + @size = @config.size + @output = @config.output @filterValues = [] @mean = 0.0