]> defiant.homedns.org Git - ros_wild_thumper.git/commitdiff
ledstripe.rb: Fix Exception
authorErik Andresen <erik@vontaene.de>
Thu, 27 Sep 2018 19:45:00 +0000 (21:45 +0200)
committerErik Andresen <erik@vontaene.de>
Thu, 27 Sep 2018 19:45:00 +0000 (21:45 +0200)
scripts/ledstripe.rb

index 9f4119ef78382d3d6d96f85712ad20bd75bc3afc..4205c390826fa3abfc129942be8d5e5dbd9fccc6 100755 (executable)
@@ -17,7 +17,7 @@ class LPD8806
        
        def set(i, red=0, green=0, blue=0)
                if red > 127 or green > 127 or blue > 127 or red < 0 or green < 0 or blue < 0
-                       raise Exception("Bad RGB Value")
+                       raise "Bad RGB Value"
                end
                @l[i] = [red, green, blue]
        end