Go Down

Topic: [BUG] After updating, byte-int conversation fails and freezes arduino (Read 661 times) previous topic - next topic

dpc27

Hi,

after having lot of problems due to memory lack, I changed all my variables to optimize it, byte for int, etc.

Yesterday I updated the SDK and drivers of my Arduino Ethernet, I was trying to solve an error and I couldn't find any other solution so far. It worked and I stepped forward on it, but still frozen.

Today I realised, what was working in previous version it doesn't anymore.
When I mapped byte to int in a for loop, it worked so far, but it doesn't anymore, and compiler doesn't advice it.

Regards,

David

fcwilt

How about a some code to show what you did.

I have no issues using a byte as the for loop variable.

Is that what you are speaking of?

bperrybap

I have no issues using a byte as the for loop variable.

\
Depends on the actual code. A "byte" is an unsigned char, so not only is this fewer bits than an int but it is also unsigned.
These differences can cause behaviour changes, depending on the code.

--- bill

Go Up