Stuff not working

This commit is contained in:
Mark Qvist 2014-04-07 01:15:52 +02:00
parent e5513801f6
commit c12cd16bd9
5 changed files with 7 additions and 6 deletions

View file

@ -11,7 +11,7 @@
#define CONFIG_AFSK_RXTIMEOUT 0 // How long a read operation from the modem
// will wait for data before timing out.
#define CONFIG_AFSK_PREAMBLE_LEN 250UL // The length of the packet preamble in milliseconds
#define CONFIG_AFSK_PREAMBLE_LEN 500UL // The length of the packet preamble in milliseconds
#define CONFIG_AFSK_TRAILER_LEN 100UL // The length of the packet tail in milliseconds
#endif

View file

@ -4,7 +4,7 @@
//////////////////////////////////////////////////////
#include <cpu/irq.h> // Interrupt functionality from BertOS
#include <cfg/debug.h> // Debug configuration from BertOS
#include "cfg/debug.h" // Debug configuration from BertOS
#include <drv/ser.h> // Serial driver from BertOS
#include <drv/timer.h> // Timer driver from BertOS
@ -101,6 +101,7 @@ int main(void)
// and the byte is not a "transmit" (newline) character,
// we should store it for transmission.
if ((serialLen < MP1_MAX_FRAME_LENGTH) && (sbyte != 138)) {
kprintf("%d\n", sbyte);
// Put the read byte into the buffer;
serialBuffer[serialLen] = sbyte;
// Increment the read length counter

View file

@ -45,8 +45,8 @@ void mp1Poll(MP1 *mp1) {
} else {
// Checksum was incorrect
//mp1Decode(mp1);
//kprintf("Incorrect checksum. Found %d.\n", mp1->buffer[mp1->packetLength]);
//kprintf("should be %d", mp1->checksum_in);
kprintf("Incorrect checksum. Found %d, ", mp1->buffer[mp1->packetLength]);
kprintf("should be %d\n", mp1->checksum_in);
}
}
// If the above is not the case, this must be the