Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 391 → Rev 393

/QMK-Groundstation/branches/own_com_lib/com/Parser.cpp
2,8 → 2,9
 
// Base64 Decoder
// see Parser.h for details about sRxData
void Parser::decode64(sRxData &rx, unsigned int length)
void Parser::decode64(sRxData &rx)
{
int length = rx.str.size();
unsigned char a,b,c,d;
unsigned char ptr = 0;
unsigned char x,y,z;
19,10 → 20,10
}
 
while(len != 0) {
a = RX.input[ptrIn++] - '=';
b = RX.input[ptrIn++] - '=';
c = RX.input[ptrIn++] - '=';
d = RX.input[ptrIn++] - '=';
a = rx.input[ptrIn++] - '=';
b = rx.input[ptrIn++] - '=';
c = rx.input[ptrIn++] - '=';
d = rx.input[ptrIn++] - '=';
 
if(ptrIn > max - 2) break;