Version 1.4.3

Bugfix: in function set_ch the address of channel was incremented instead of the value of it
Bugfix: in function get_timing integers were read to byte sized fields causing memory corruption
Updated and renamed moving_debug.c & moving_debug.h
This commit is contained in:
2021-08-30 20:33:19 +02:00
parent 0833762006
commit da56a0eb10
7 changed files with 63 additions and 39 deletions

3
main.c
View File

@@ -1,5 +1,5 @@
#include "timing.h"
#include "moving.h"
#include "moving_debug.h"
#include <stdio.h>
#define FILEPATH "menetrend.txt"
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
@@ -56,7 +56,6 @@ int main ()
set_ch (&ercsi13[i], &ch);
switch (check_timing (&ercsi13[i]))
{
case up:press_button (up);
break;
case stop:break;