Am Dienstag, 1. Mai 2012 16:03:33 schrieb Motiejus Jakštys:
if (!get_option(&val, "bluetooth"))
h8_bluetooth_enable(val);
- h8_bluetooth_enable(1);
What would be a better way to do it?
val = 1; get_option(&val, "bluetooth"); h8_bluetooth_enable(val);
get_option only updates the value pointed to by the first argument if there's something to update to (CMOS use must be enabled _and_ CMOS must contain valid data). Otherwise it's kept as is.
Regards, Patrick