use parseInt for hex values
This commit is contained in:
parent
3da692f7ef
commit
0131686661
1 changed files with 3 additions and 3 deletions
|
@ -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 = ''
|
||||||
|
|
Loading…
Reference in a new issue