Subversion Repositories HomeAutomation

Rev

Rev 1029 | Rev 1046 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1029 Rev 1030
Line 460... Line 460...
460
        }
460
        }
461
    }
461
    }
462
 
462
 
463
    try
463
    try
464
    {
464
    {
-
 
465
        while (highestBit%8 != 0)
-
 
466
        {
-
 
467
            highestBit++;
-
 
468
        }
465
        bin = bin.substr(0, ((uint)((highestBit+8)/8))*8);
469
        bin = bin.substr(0, highestBit);
466
    }
470
    }
467
    catch (std::out_of_range& e)
471
    catch (std::out_of_range& e)
468
    {
472
    {
469
        cout << "DEBUG: translateValidDataToHex exception: " << e.what() << "\n";
473
        cout << "DEBUG: translateValidDataToHex exception: " << e.what() << "\n";
470
        cout << "DEBUG: A bin=" << bin << " :: highestBit=" << highestBit << endl;
474
        cout << "DEBUG: A bin=" << bin << " :: highestBit=" << highestBit << endl;