Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

v0.10.1a

> Linear
  * Fixes stupid or/and error on gaugeType checking!
  • Loading branch information...
commit 9dc7d74293daeae3677a2e79dc86e0487eba6454 1 parent 1709dc6
@mcrossley mcrossley authored
Showing with 8 additions and 4 deletions.
  1. +4 −0 ChangeLog.txt
  2. +2 −2 steelseries-min.js
  3. +2 −2 steelseries.js
View
4 ChangeLog.txt
@@ -1,5 +1,9 @@
Main Changes
+v0.10.1a
+> Linear
+ * Fixes stupid or/and error on gaugeType checking!
+
v0.10.1
> Linear
* Added range check to gaugeType, forcing default = TYPE1 if anything other than TYPE1 or TYPE2 is supplied
View
4 steelseries-min.js
2 additions, 2 deletions not shown
View
4 steelseries.js
@@ -2,7 +2,7 @@
* Name : steelseries.js
* Author : Gerrit Grunwald, Mark Crossley
* Last modified : 18.02.2012
- * Revision : 0.10.1
+ * Revision : 0.10.1a
*/
var steelseries = function() {
@@ -2828,7 +2828,7 @@ var steelseries = function() {
var maxMeasuredValue = minValue;
// Check gaugeType is 1 or 2
- if (gaugeType.type !== 'type1' || gaugeType.type !== 'type2') {
+ if (gaugeType.type !== 'type1' && gaugeType.type !== 'type2') {
gaugeType = steelseries.GaugeType.TYPE1;
}
Please sign in to comment.
Something went wrong with that request. Please try again.