Ovrflw from IPNumericUpDown

Support forum for MegunoLink
Post Reply
nils
Posts: 6
Joined: Sat Jun 12, 2021 10:16 am

Thu Sep 02, 2021 12:50 pm

Hi
I'm trying to send 8 numbers from 8 IPNumericUpDown windows, it's ok with single digits but with 2 digits I get " Ovrflw "
this is ok:

!SetValues1 1 2 3 4 5 6 7 1
Updating values.. UD1 = 1.00
UD2 = 2.00
UD3 = 3.00
UD4 = 4.00
UD5 = 5.00
UD6 = 6.00
UD7 = 7.00
UD8 = 1.00

but with UD = 10 I get:
!SetValues1 10 2 3 4 5 6 7 1 Ovrflw

Do I have some settings wrong? ( all UD1..8 variables are long in Arduino)

Very happy if it is possible to solve this !
Nils
nils
Posts: 6
Joined: Sat Jun 12, 2021 10:16 am

Thu Sep 02, 2021 6:25 pm

my mistake , it was a simple solution , changing the values in commandhandler to bigger values:

CommandHandler<10,70,30> SerialCommandHandler;

Nils
Post Reply