Wow! Got it after converting the tmp to int before assigning to newtime.
Thanks!
Type: Posts; User: iam818
Wow! Got it after converting the tmp to int before assigning to newtime.
Thanks!
Well, I want to change the time of a RTC IC by input a command line from terminal.
Example:
settime,10,20,30,40,50,60,70
There's an array to store the time information. Example:
...
Sorry if I have posted to a wrong area.
I've been assigned the newtime like this but the content still has not changed:
unsigned char time[7] = {0x00,0x30,0x09,0x01,0x03,0x00,0x11};
...
Hi,
I have one string as below and would like to change the content one by one. I tried in this way but it's not successed.
unsigned char newtime[7];
for (x=7; x>0; x--)