Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Bug in WPS parser
« previous next »
  • Print
Pages: [1]

Author Topic: Bug in WPS parser  (Read 1572 times)

Offline ray

  • Artist
  • Member
  • *
  • Posts: 75
  • iAmp!
Bug in WPS parser
« on: March 24, 2007, 07:12:16 PM »
Basically, the following code:

(edit... had to attach code as an image, because i can't input WPS code into the "code" tag...

should output the following when you have the Sleep Timer enabled:

Code: [Select]
               Power Off in 15:00                                  <----- displayed for 3 seconds
0:01/4:36                                        1 of 16            <---- alt line displayed for 6 seconds

Instead, for the second alt line I am getting this:

Code: [Select]
0:01/4:36                                        1 of 16>

By logic, the end bracket shouldn't be displayed at the end of the playlist number because I am ending the conditional statement... unless I am coding this part wrong...

Any help would be appreciated!
« Last Edit: March 24, 2007, 07:15:18 PM by djray »
Logged

Offline ray

  • Artist
  • Member
  • *
  • Posts: 75
  • iAmp!
Re: Bug in WPS parser
« Reply #1 on: March 24, 2007, 07:29:11 PM »
i found a workaround, which is cleaner and more efficient:
Code: [Select]
%?bs<%acPower Off in %bs%t3|%t0>;%pc/%pt %ar%pp of %pe%t6

the first post is still a bug... albeit sloppy coding on my part, but still a bug!
Logged

Offline NicolasP

  • Developer
  • Member
  • *
  • Posts: 195
Re: Bug in WPS parser
« Reply #2 on: March 25, 2007, 07:02:45 PM »
Your conditional is implicitly closed by the subline separator. You can't have conditionals spreading across lines or sublines.
Logged

Offline ray

  • Artist
  • Member
  • *
  • Posts: 75
  • iAmp!
Re: Bug in WPS parser
« Reply #3 on: March 25, 2007, 07:50:29 PM »
thanks nicolas for pointing that out!
so it was just sloppy coding on my part! ;)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Bug in WPS parser
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 15 queries.