more stuff moved to cfg

This commit is contained in:
Robin Müller 2020-10-12 23:56:30 +02:00
parent 8c5bb21d70
commit 78792e5d4a
2 changed files with 2 additions and 7 deletions

View File

@ -4,5 +4,6 @@
#define BAUD_RATE 115200
#define SERIAL_RX_BUFFER_SIZE 256
#define RING_BUFFER_SIZE 100
#define MAX_PACKET_LENGTH 100
#endif /* ARDUINOCONFIG_H_ */

View File

@ -15,10 +15,6 @@
#define CS_PORT PORTC
#define CS_DDR DDRC
#define MAX_PACKET_LENGTH 100
static const uint8_t COMMAND_TRANSFER_SPI = 1;
SimpleRingBuffer ringBuffer(RING_BUFFER_SIZE, true);
@ -92,9 +88,7 @@ void handlePacket(uint8_t *packet, size_t packetLen) {
//check reply:
Serial.println("Data response check: ");
for(size_t i =0; i< packetLen; i++){
Serial.print("packet nr ");
Serial.print(i);
Serial.print(" ");
Serial.print("packet nr ");Serial.print(i);Serial.print(" ");
Serial.println(packet[i]);
}
sendData(packet, packetLen);