case ELP_VAR_DELAY:
// Si es GET, sólo calculamos tamaño de respuesta
if (!elp_command.set)
- return len + sizeof(leds_delay);
+ return len + LEDS_DELAY_SIZE;
// Si es SET procesamos
- netdev_read_start(sizeof(leds_delay));
- leds_delay = udp_read_byte();
+ netdev_read_start(LEDS_DELAY_SIZE);
+ leds_delay_set(udp_read_byte());
netdev_read_end();
return len;
break;
case ELP_VAR_DELAY:
- netdev_write_start(sizeof(leds_delay));
- udp_write_byte(leds_delay);
+ netdev_write_start(LEDS_DELAY_SIZE);
+ udp_write_byte(leds_delay_get());
netdev_write_end();
break;
}