From 013168666151c82c930850dca5cc810d4d3f01bf Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sun, 12 Nov 2023 18:25:38 +0000 Subject: [PATCH] use parseInt for hex values --- devices/gl-ar750/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devices/gl-ar750/default.nix b/devices/gl-ar750/default.nix index c334344..068a147 100644 --- a/devices/gl-ar750/default.nix +++ b/devices/gl-ar750/default.nix @@ -52,7 +52,7 @@ ''; - module = {pkgs, config, ... }: + module = {pkgs, config, lim, ... }: let openwrt = pkgs.openwrt; firmwareBlobs = pkgs.pkgsBuildBuild.fetchFromGitHub { @@ -77,8 +77,8 @@ }; ath10k_cal_data = let - offset = 1024 * 20; # 0x5000 - size = 2048 + 68; # 0x844 + offset = lim.parseInt "0x5000"; + size = lim.parseInt "0x844"; in pkgs.liminix.services.oneshot rec { name = "ath10k_cal_data"; up = ''