- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
trying to set the rtc values using a struct like in the example and I get this when I try and enter values..
.\main.c: In function 'main':
.\main.c:30:17: error: invalid digit "9" in octal constant
Start.Min = 09u;
it happens for all struct variables.. it only accepts digits 0-7 instead of decimals.
what did I do wrong? otherwise my digital clock using a neopixel ring works good 🙂 just have to code the time setting method using switches.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post project so all of the affecting code can be examined -
Consider posting your project, makes life easier to troubleshoot.
“File” Creator
“Create Workspace Bundle”
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got only a couple of minor warnings, it compiled for me.....
Creator 3.2, SP1
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
even if you put a number higher than 7 in the start.sec or any of them?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
C constant rules:
123 decimal constant
0123 octal constant
0x123 hex constant
Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ooooooh, now I see! I knew it had to be something I was doing wrong!
thanks much! now I can do it easier 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ed,
Wow! well done. Since octal is so far away from my own thoughts it would never have come to my mind...
Bob