This commit is contained in:
Miguel Fuertes committed 2025-10-19 17:15:32 +02:00
1 parent 1399377808
commit 37329b1b36
4 files changed
+4 -5

No files matched your search

-3
View File
@@ -55,9 +55,6 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/view/admin_status/index
$(INSTALL_DATA) ./files/battery.htm $(1)/usr/lib/lua/luci/view/admin_status/index/20_battery.htm
$(INSTALL_DIR) $(1)/lib/preinit
$(INSTALL_BIN) ./files/preinit/05_dim_backlight $(1)/lib/preinit/05_dim_backlight
endef
define Package/$(PKG_NAME)/postinst
+2
View File
@@ -44,6 +44,8 @@ define Build/Compile
endef
define KernelPackage/fbtft-gc9107/install
$(INSTALL_DIR) $(1)/lib/preinit
$(INSTALL_BIN) ./preinit/05_dim_backlight $(1)/lib/preinit/05_dim_backlight
endef
$(eval $(call KernelPackage,fbtft-gc9107))
+2 -2
View File
@@ -247,10 +247,10 @@ int main(int argc, char *argv[]) {
};
int opt;
while ((opt = getopt(argc, argv, "b:Cn:t:s:p:h:qc")) != -1) { // NEW: Added 'C' flag
while ((opt = getopt(argc, argv, "b:cn:t:s:p:h:qu")) != -1) {
switch (opt) {
case 'b': cfg.battery = atoi(optarg); break;
case 'c': cfg.charging = 1; break; // NEW: charging flag
case 'c': cfg.charging = 1; break;
case 'n': strncpy(cfg.operator, optarg, 31); break;
case 't': strncpy(cfg.network_type, optarg, 7); break;
case 's': strncpy(cfg.ssid, optarg, 63); break;