mirror of
https://github.com/markqvist/OpenModem.git
synced 2024-10-01 03:15:46 -04:00
Fixed ack bug
This commit is contained in:
parent
eb1b4c233e
commit
eeb897e061
@ -204,7 +204,7 @@ void ss_messageCallback(struct AX25Msg *msg, Serial *ser) {
|
|||||||
while (i<7 && i < msg->len) {
|
while (i<7 && i < msg->len) {
|
||||||
if (msg->info[loc-i] == '{') {
|
if (msg->info[loc-i] == '{') {
|
||||||
size_t p;
|
size_t p;
|
||||||
for (p = 0; p < i; p++) {
|
for (p = 0; p <= i; p++) {
|
||||||
mseq[p] = msg->info[loc-i+p];
|
mseq[p] = msg->info[loc-i+p];
|
||||||
msl = i;
|
msl = i;
|
||||||
}
|
}
|
||||||
@ -270,9 +270,11 @@ void ss_messageCallback(struct AX25Msg *msg, Serial *ser) {
|
|||||||
ack[12] = 'c';
|
ack[12] = 'c';
|
||||||
ack[13] = 'k';
|
ack[13] = 'k';
|
||||||
|
|
||||||
for (ii = 0; ii < msl-1; ii++) {
|
for (ii = 0; ii < msl; ii++) {
|
||||||
ack[14+ii] = mseq[ii+1];
|
ack[14+ii] = mseq[ii+1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_delay_ms(1750);
|
||||||
ss_sendPkt(ack, 14+msl, ax25ctx);
|
ss_sendPkt(ack, 14+msl, ax25ctx);
|
||||||
|
|
||||||
free(ack);
|
free(ack);
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#define VERS_BUILD 2199
|
#define VERS_BUILD 2221
|
||||||
#define VERS_HOST "shard"
|
#define VERS_HOST "shard"
|
||||||
|
BIN
images/Modem.elf
BIN
images/Modem.elf
Binary file not shown.
1725
images/Modem.hex
1725
images/Modem.hex
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user