03-06-2012 10:21 PM
When I use
I expected it to flash the GREEN LED once and once only but it continues to flash about once every 3 seconds
If I follow the above command by
I expected it to flash RED once but it flashes alternately RED and GREEN.
Are my expectations that I should have seen a single GREEN flash followed by single RED flash?
Actual code I used is shown below and flashes 4 GREEN followed by RED GREEN RED?
if (led_request_color(LED_Id,LED_COLOR_GREEN,1) == BPS_FAILURE)
cout << "LED request failed, errno = " << errno << endl;
if (led_request_color(LED_Id,LED_COLOR_RED,1) == BPS_FAILURE)
cerr << "LED request failed, errno = " << errno << endl;
for this code I expected only one GREEN followed by one RED.
03-07-2012 12:23 AM
I am in the same boat as you are. I'll post back If I figure out why it does that.
Maybe you should try to use the led_cancel when you want to stop the led from flashing?
03-08-2012 01:17 PM
Looks like an issue with the API. I've escalated it to our development team.
For reference, this is logged in Issue Tracker here: https://www.blackberry.com/jira/browse/TOOL-441