o: ActiveSupport::Cache::Entry :@compressedF: @value"|"v
main.c
35 35
void EXT_isr()  //interrup from rain sensor clip. 
36 36
{
37 37
  rain++;
38
  if (input(PIN_B0)) ext_int_edge( H_TO_L );
39
  if (!input(PIN_B0)) ext_int_edge( L_TO_H );
38
//  if (input(PIN_B0)) ext_int_edge( H_TO_L );     osetreni pro pripad, ze by bylo treba cist obe hrany impulzu
39
//  if (!input(PIN_B0)) ext_int_edge( L_TO_H );
40 40
}
41 41

  
42 42
float wind_direction(void) //vypocet azimutu smeru vetru
43 43
{
44 44
signed int16 X,Y,Z;
45 45
float b;
46
  X = mag_readX();  
46
  X = mag_readX(); 
47
   delay_ms(10);
47 48
  Y = mag_readY();
48 49
 
49 50

  
......
84 85
 
85 86
unsigned int8 sht_config;
86 87

  
87
//nastaveni SHT25
88
SHT25_soft_reset();
89
sht_config = SHT25_RH12_T14 | SHT25_HEATER_OFF; //vypnuti topeni v SHT25
90
SHT25_setup(sht_config);
91

  
92 88
//nastaven? p?eru?en? pro anemometr
93 89
enable_interrupts(INT_TIMER1);   
94 90
enable_interrupts(INT_TIMER0);
......
100 96
timer0_overflow_count=0;
101 97
rain=0;
102 98

  
103

  
104 99
welcome();
105 100
set_mag(); //nastaveni magnetometru pro smer vetru
106 101

  
102
//nastaveni SHT25
103
SHT25_soft_reset();
104
sht_config = SHT25_RH12_T14 | SHT25_HEATER_OFF; //vypnuti topeni v SHT25
105
SHT25_setup(sht_config);
106

  
107

  
107 108
   while(TRUE)
108 109
   {
109 110
unsigned int32 i=0;
:@created_atf1425259306.5689039hì:@expires_in0