Compare commits

..

No commits in common. "master" and "v1.0.3" have entirely different histories.

3 changed files with 5 additions and 7 deletions

View File

@ -1,5 +1,5 @@
name=HamShield_KISS
version=1.0.6
version=1.0.3
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.
@ -8,4 +8,3 @@ category=Device Control
url=http://www.hamshield.com
architectures=*
includes=packet.h, SimpleFIFO.h, KISS.h
depends=HamShield, DDS

View File

@ -2,7 +2,6 @@
#include "packet.h"
#include "KISS.h"
//AFSK::Packet kissPacket;
bool inFrame = false;
uint8_t kissBuffer[PACKET_MAX_LEN];
@ -24,7 +23,7 @@ void KISS::loop() {
}
}
// Check if we have incoming data to turn into a packet
while(currentlySending == false && io->available()) {
while(io->available()) {
uint8_t c = (uint8_t)io->read();
if(c == KISS_FEND) {
if(inFrame && kissLen > 0) {
@ -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

@ -1,7 +1,7 @@
#include <Arduino.h>
#include "SimpleFIFO.h"
#include "packet.h"
#include <DDS.h>
#include "dds.h"
#include <util/atomic.h>
#define PHASE_BIT 8
@ -537,7 +537,7 @@ size_t AFSK::Packet::appendCallsign(const char *callsign, uint8_t ssid, bool fin
if(final) {
ssidField |= 0b01100001;
} else {
ssidField |= 0b01100000;
ssidField |= 0b11100000;
}
appendFCS(ssidField);
}