blinkstick.js
function _determineReportId(ledCount)
{
    var reportId = 9;
    var maxLeds = 64;

    if (ledCount < 8 * 3) {
        reportId = 6;
        maxLeds = 8;
    } else if (ledCount < 16 * 3) {
        reportId = 7;
        maxLeds = 16;
    } else if (ledCount < 32 * 3) {
        reportId = 8;
        maxLeds = 32;
    }

    return { 'reportId': reportId, 'maxLeds': maxLeds };
}
function _determineReportId(ledCount)
{
    var reportId = 9;
    var maxLeds = 64;

    if (ledCount < 8 * 3) {
        reportId = 6;
        maxLeds = 8;
    } else if (ledCount < 16 * 3) {
        reportId = 7;
        maxLeds = 16;
    } else if (ledCount < 32 * 3) {
        reportId = 8;
        maxLeds = 32;
    }

    return { 'reportId': reportId, 'maxLeds': maxLeds };
}
function _determineReportId ( ledCount ) { var reportId = 9 ; var maxLeds = 64 ; if ( ledCount < 8 * 3 ) { reportId = 6 ; maxLeds = 8 ; } else if ( ledCount < 16 * 3 ) { reportId = 7 ; maxLeds = 16 ; } else if ( ledCount < 32 * 3 ) { reportId = 8 ; maxLeds = 32 ; } return { 'reportId' : reportId , 'maxLeds' : maxLeds } ; }
Determines report ID and number of LEDs for the report

@private
@method _determineReportId
@return {object} data.reportId and data.ledCount
Determines report ID and number of LEDs for the report