Hi,
How could I convert variable uint8 rampasskey[6] = {1,2,3,4,5,6}; to uint32 rampasskey = 123456; ?
Thank you,
Asier.
Solved! Go to Solution.
Something like
int ii;
uint32 rampasskey = 0;
uint8 KeyARRAY[6];
for(ii = 5; ii >= 0:ii--)
{
rampasskey *= 10;
rampasskey += KeyARRAY[ii];
}
Happy coding
Bob
Something like
int ii;
uint32 rampasskey = 0;
uint8 KeyARRAY[6];
for(ii = 5; ii >= 0:ii--)
{
rampasskey *= 10;
rampasskey += KeyARRAY[ii];
}
Happy coding
Bob