File tree 3 files changed +13
-11
lines changed
FDBGen/src/iTXTech/FlashDetector/FDBGen
src/iTXTech/FlashDetector/Property 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -39,21 +39,21 @@ class MicronDatabase{
39
39
private $ file ;
40
40
private $ data ;
41
41
42
- public function __construct (string $ file ){
42
+ public function __construct (string $ file, int $ option = JSON_PRETTY_PRINT ){
43
43
$ this ->file = new Config ($ file , Config::JSON , [
44
44
"micron " => [],
45
45
"spectek " => []
46
46
]);
47
47
$ this ->data = $ this ->file ->getAll ();
48
- $ this ->file ->save (0 );
48
+ $ this ->file ->save ($ option );
49
49
}
50
50
51
- public function save (int $ option = 0 ){
51
+ public function save (int $ option = JSON_PRETTY_PRINT ){
52
52
$ this ->file ->setAll ($ this ->data );
53
53
$ this ->file ->save ($ option );
54
54
}
55
55
56
- public function update (int $ option = 0 ){
56
+ public function update (int $ option = JSON_PRETTY_PRINT ){
57
57
foreach (self ::MICRON_HEADER as $ h ){
58
58
for ($ i = self ::START_FROM [$ h ]; $ i < 1000 ; $ i ++){
59
59
if (!isset ($ this ->data ["micron " ][$ code = self ::getCode ($ h , $ i )])){
Original file line number Diff line number Diff line change 1
1
{
2
2
"info": {
3
3
"name": "iTXTech FlashDetector Flash Database",
4
- "version": "40 ",
4
+ "version": "41 ",
5
5
"website": "https:\/\/github.com\/iTXTech\/FlashDetector",
6
- "time": "Fri, 01 Nov 2019 17:21:29 +0800",
6
+ "time": "Wed, 06 Nov 2019 15:16:56 +0800",
7
7
"controllers": [
8
8
"SM321AC",
9
9
"SM321BB",
9691
9691
"EC3AD5F3A8C6"
9692
9692
],
9693
9693
"l": "16nm"
9694
+ },
9695
+ "K9QFGY8S7M": {
9696
+ "id": [
9697
+ "ECA7A06A68C4"
9698
+ ]
9694
9699
}
9695
9700
},
9696
9701
"skhynix": {
35700
35705
]
35701
35706
}
35702
35707
},
35703
- "toshiba ": {
35708
+ "kioxia ": {
35704
35709
"TC58DVM92A1FT00": {
35705
35710
"id": [
35706
35711
"9876A5C00680",
46873
46878
]
46874
46879
}
46875
46880
},
46876
- "sandisk ": {
46881
+ "westerndigital ": {
46877
46882
"SDTNFBH-1024": {
46878
46883
"id": [
46879
46884
"9879A5C08680",
Original file line number Diff line number Diff line change @@ -61,9 +61,6 @@ public function setRnb(int $rnb) : Classification{
61
61
return $ this ;
62
62
}
63
63
64
- /**
65
- * @return int
66
- */
67
64
public function getCe () : int {
68
65
return $ this ->ce ;
69
66
}
You can’t perform that action at this time.
0 commit comments