#define FONT_NAME "Sans Condensed Bold"
#define FONT_SIZE 9
+/* #define DEBUG_ACPI 1 */
+
static int font_size;
static int capacity;
static int ac_online = false;
break;
}
+#ifdef DEBUG_ACPI
printf("ac online = %d\n", ac_online);
+#endif /* DEBUG_ACPI */
}
fclose(ac_file);
fgets(batt_file_line, 40, batt_file);
sscanf(batt_file_line, "%d", &capacity);
-#ifdef _DEBUG_
- printf("DEBUG: Found capacity: %d.\n", capacity);
-#endif
break;
}
+#ifdef DEBUG_ACPI
printf("capacity = %d%%\n", capacity);
+#endif /* DEBUG_ACPI */
}
fclose(batt_file);