Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
// checksum the data, for example ";111111CCS#". I don't include the command frame in the checksum. The error response is a checksumed string "CK_FAILS#" to request re-transmit.
byte cks=0; for (int cksCount0=1; cksCount0<len-3; cksCount0++) { cks+=cb[cksCount0]; }
char chkSum[3]; sprintf(chkSum,"%02X",cks);
seq=cb[len-1];
if (!((chkSum[0]==cb[len-3]) && (chkSum[1]==cb[len-2]))) {
flush(); cb[0]=':'; cb[1]=(char)6; cb[2]='0'; cb[3]='#'; cb[4]=0; cbp=4;
return true;
}
// (char)6 - Special
if (command[0]==(char)6) {
if (command[1]=='0') {
reply[0]=command[1]; strcpy(reply,"CK_FAIL"); // last cmd checksum failed
} else {
reply[0]=command[1]; reply[1]=0; // Equatorial or Horizon mode, A or P
supress_frame=true;
}
quietReply=true;
} else
uint8_t LX200Gemini::calculateChecksum(char *cmd)
{
uint8_t result = cmd[0];
for (size_t i=1; i < strlen(cmd); i++)
result = result ^ cmd[i];
result = result % 128;
result += 64;
return result;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
sudo apt purge modemmanger
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.