Pārlūkot izejas kodu

Main timer is 100Hz

k4be 2 gadi atpakaļ
vecāks
revīzija
0557d5b5df
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      soft/main.h

+ 2 - 2
soft/main.h

@@ -63,7 +63,7 @@
 #define ERROR_I2C	1
 #define ERROR_I2C_TIMEOUT	2
 
-#define ms(x) (x/100)
+#define ms(x) (x/10)
 
 struct timers {
 	unsigned int owire;
@@ -73,7 +73,7 @@ struct timers {
 
 struct system_s {
 	struct timers timers;
-	unsigned int global_error;	
+	unsigned int global_error;
 };
 
 extern volatile struct system_s System;