current line val = str(round(float(65535 / float(maxVal) - float
(minVal)) * float(val)))
correct line val = int(float(65535) / (float(maxVal) - float
(minVal)) * float(val))
maxVal-minVal isn't in paranthesis which causes 65535 to be divided by
maxVal before subtracting MinVal. Also, the final value being passed
on to the command fusion remote contained a decimal.
On Nov 17, 10:05 pm, Jarrod Bell <jar...@guilink.com> wrote:
> Updated the code to fix that above bug
>
> Jarrod
>
> On Nov 18, 2:00 pm, Fiasco <dgvoll...@gmail.com> wrote:
>
>
>
> > Also,
>
> > On the event ghost plugin. When you setup a command fusion macro for
> > Analog, you now have the Min/Max (as requested) and the conversion to
> > the values necessary to send to a guage/slider . However, when you
> > use the slider to send a value to eventghost the min/max values are
> > not used to convert the number.- Hide quoted text -
>
> - Show quoted text -
--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=.


Comments
0 comments to "Re: Error in EventGhost plugin (Line 400)"
Post a Comment