Skip to content
Snippets Groups Projects
Commit 6f28f34c authored by Julia Wichmann's avatar Julia Wichmann
Browse files

Minor Bugfixing

parent 2bf32ba9
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,7 @@ byte crc_check(byte* input){ ...@@ -44,7 +44,7 @@ byte crc_check(byte* input){
} }
byte* payload = malloc (input[5]*sizeof(byte)); byte* payload = malloc (input[5]*sizeof(byte));
for(uint i = 6; i < input[5]+6; i++){ for(uint i = 6; i < (uint)input[5]+6; i++){
payload[i-6] = input[i]; payload[i-6] = input[i];
} }
......
...@@ -127,7 +127,7 @@ int main(void){ ...@@ -127,7 +127,7 @@ int main(void){
printf("\n"); printf("\n");
//Hier evtl. noch Speicherung und/oder Ausgabe einbauen. //Hier evtl. noch Speicherung und/oder Ausgabe einbauen.
} }
l3_exec(action) l3_exec(action, receivedFrame);
receiveIndex = 0; receiveIndex = 0;
} }
else if(receiveIndex==7){ //check destination else if(receiveIndex==7){ //check destination
......
#include "crc.h" //#include "crc.h"
void broadcast_successful(); void broadcast_successful();
byte l3_action(byte dest, byte src); byte l3_action(byte dest, byte src);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment