Send Float to Interface Problem

Support forum for MegunoLink
Post Reply
Posts: 2
Joined: Thu Nov 20, 2014 6:01 pm

Thu Nov 20, 2014 6:14 pm

I notice that when I send floating value from Arduino to interface with SetNumber command. Value will be changed to integer and I lost the floating point.
I try to fix this problem by add new function in InterfacePanel.cpp by overload function. It work fine.

Please comment or suggest.

void InterfacePanel::SetNumber(const char * ControlName, float fValue, int decimal) // Added by SVP
SendControlHeader(ControlName, F("Value"));

Posts: 9
Joined: Sun Nov 16, 2014 9:13 pm

Sat Nov 22, 2014 10:05 am

How do I set this up? I'm getting an error.. thanks
Posts: 359
Joined: Mon May 26, 2014 10:58 am

Tue Dec 02, 2014 5:06 pm

Nice find! I'll make sure I update the library with your added function.

Post Reply