mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-07 11:28:58 +00:00
Uncrustified weather meter driver and example
This commit is contained in:
parent
81bec49a40
commit
366f11d5df
@ -305,7 +305,6 @@ weather_meter_interrupt_handler(uint8_t port, uint8_t pin)
|
|||||||
if((port == ANEMOMETER_SENSOR_PORT) && (pin == ANEMOMETER_SENSOR_PIN)) {
|
if((port == ANEMOMETER_SENSOR_PORT) && (pin == ANEMOMETER_SENSOR_PIN)) {
|
||||||
weather_sensors.anemometer.ticks++;
|
weather_sensors.anemometer.ticks++;
|
||||||
process_post(&weather_meter_int_process, anemometer_int_event, NULL);
|
process_post(&weather_meter_int_process, anemometer_int_event, NULL);
|
||||||
|
|
||||||
} else if((port == RAIN_GAUGE_SENSOR_PORT) && (pin == RAIN_GAUGE_SENSOR_PIN)) {
|
} else if((port == RAIN_GAUGE_SENSOR_PORT) && (pin == RAIN_GAUGE_SENSOR_PIN)) {
|
||||||
weather_sensors.rain_gauge.ticks++;
|
weather_sensors.rain_gauge.ticks++;
|
||||||
aux = weather_sensors.rain_gauge.ticks * WEATHER_METER_AUX_RAIN_MM;
|
aux = weather_sensors.rain_gauge.ticks * WEATHER_METER_AUX_RAIN_MM;
|
||||||
|
Loading…
Reference in New Issue
Block a user