use parseInt for hex values

This commit is contained in:
Daniel Barlow 2023-11-12 18:25:38 +00:00
parent 3da692f7ef
commit 0131686661

View file

@ -52,7 +52,7 @@
''; '';
module = {pkgs, config, ... }: module = {pkgs, config, lim, ... }:
let let
openwrt = pkgs.openwrt; openwrt = pkgs.openwrt;
firmwareBlobs = pkgs.pkgsBuildBuild.fetchFromGitHub { firmwareBlobs = pkgs.pkgsBuildBuild.fetchFromGitHub {
@ -77,8 +77,8 @@
}; };
ath10k_cal_data = ath10k_cal_data =
let let
offset = 1024 * 20; # 0x5000 offset = lim.parseInt "0x5000";
size = 2048 + 68; # 0x844 size = lim.parseInt "0x844";
in pkgs.liminix.services.oneshot rec { in pkgs.liminix.services.oneshot rec {
name = "ath10k_cal_data"; name = "ath10k_cal_data";
up = '' up = ''