Skip to content

Commit

Permalink
fix signedness for char
Browse files Browse the repository at this point in the history
  • Loading branch information
morgan committed Nov 8, 2018
1 parent ba97bd4 commit 07fbb1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/KISS.cpp
Expand Up @@ -2,6 +2,7 @@
#include "packet.h"
#include "KISS.h"


//AFSK::Packet kissPacket;
bool inFrame = false;
uint8_t kissBuffer[PACKET_MAX_LEN];
Expand Down Expand Up @@ -76,7 +77,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++) {
char c = p->getByte(i);
unsigned 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));
Expand Down

0 comments on commit 07fbb1a

Please sign in to comment.