File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 38
38
# print(val)
39
39
40
40
value = struct .unpack_from ("HHHH" ,val )
41
- print (value )
41
+ # print(value)
42
42
if value [3 ]== 25 :
43
43
print (value [0 :3 ])
44
44
elif value [3 ]== 55 :
45
45
print (value [0 :3 ])
46
46
# if value[2]==
47
47
else :
48
-
49
- print (value [0 :3 ])
48
+ print ( "not true val" )
49
+ # print(value[0:3])
50
50
# print(value)
51
51
52
52
ser .close ()
Original file line number Diff line number Diff line change @@ -44,12 +44,12 @@ void loop() {
44
44
// Command.a=(int16_t)"Hello World";
45
45
// Command.checksum = (uint16_t)(Command.val^ Command.other_val ^ Command.other_val2);
46
46
Command.checksum =(uint16_t )Sensor1;
47
- Command2.val =(int16_t )15 ;
47
+ Command2.val =(int16_t )30 ;
48
48
Command2.other_val =(int16_t )42 ;
49
- Command2.other_val2 =(int16_t )25 ;
49
+ Command2.other_val2 =(int16_t )50 ;
50
50
// Command.a=(int16_t)"Hello World";
51
51
// Command2.checksum = (uint16_t)(Command2.val^ Command2.other_val ^ Command2.other_val2);
52
- Command .checksum =(uint16_t )Sensor2;
52
+ Command2 .checksum =(uint16_t )Sensor2;
53
53
54
54
Serial.write ((uint8_t *) &Command, sizeof (Command));
55
55
Serial.println ();
You can’t perform that action at this time.
0 commit comments