1 Commits

Author SHA1 Message Date
Nigel Vander Houwen
0bcbbdb2e3 Fixed what I believe is a typo in SSID handling during packet creation. 2019-03-13 16:33:48 -07:00
3 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
name=HamShield_KISS
version=1.0.5
version=1.0.4
author=Morgan Redfield <morgan@enhancedradio.com>, Casey Halverson <casey@enhancedradio.com>
maintainer=Morgan Redfield <morgan@enhancedradio.com>
sentence=A library for use with HamShield by Enhanced Radio Devices.

View File

@@ -2,7 +2,6 @@
#include "packet.h"
#include "KISS.h"
//AFSK::Packet kissPacket;
bool inFrame = false;
uint8_t kissBuffer[PACKET_MAX_LEN];
@@ -77,7 +76,7 @@ void KISS::writePacket(AFSK::Packet *p) {
io->write(KISS_FEND);
io->write((uint8_t)0); // Host to TNC port identifier
for(i = 0; i < p->len-2; i++) {
unsigned char c = p->getByte(i);
char c = p->getByte(i);
if(c == KISS_FEND || c == KISS_FESC) {
io->write(KISS_FESC);
io->write((c==KISS_FEND?KISS_TFEND:KISS_TFESC));

View File

@@ -537,7 +537,7 @@ size_t AFSK::Packet::appendCallsign(const char *callsign, uint8_t ssid, bool fin
if(final) {
ssidField |= 0b01100001;
} else {
ssidField |= 0b11100000;
ssidField |= 0b01100000;
}
appendFCS(ssidField);
}