Skip to content

Commit da32a06

Browse files
committed
FDB: version 41 (see fdfdb commits)
1 parent 0cba1ee commit da32a06

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

FDBGen/src/iTXTech/FlashDetector/FDBGen/MicronDatabase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ class MicronDatabase{
3939
private $file;
4040
private $data;
4141

42-
public function __construct(string $file){
42+
public function __construct(string $file, int $option = JSON_PRETTY_PRINT){
4343
$this->file = new Config($file, Config::JSON, [
4444
"micron" => [],
4545
"spectek" => []
4646
]);
4747
$this->data = $this->file->getAll();
48-
$this->file->save(0);
48+
$this->file->save($option);
4949
}
5050

51-
public function save(int $option = 0){
51+
public function save(int $option = JSON_PRETTY_PRINT){
5252
$this->file->setAll($this->data);
5353
$this->file->save($option);
5454
}
5555

56-
public function update(int $option = 0){
56+
public function update(int $option = JSON_PRETTY_PRINT){
5757
foreach(self::MICRON_HEADER as $h){
5858
for($i = self::START_FROM[$h]; $i < 1000; $i++){
5959
if(!isset($this->data["micron"][$code = self::getCode($h, $i)])){

FlashDetector/resources/fdb.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"info": {
33
"name": "iTXTech FlashDetector Flash Database",
4-
"version": "40",
4+
"version": "41",
55
"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",
77
"controllers": [
88
"SM321AC",
99
"SM321BB",
@@ -9691,6 +9691,11 @@
96919691
"EC3AD5F3A8C6"
96929692
],
96939693
"l": "16nm"
9694+
},
9695+
"K9QFGY8S7M": {
9696+
"id": [
9697+
"ECA7A06A68C4"
9698+
]
96949699
}
96959700
},
96969701
"skhynix": {
@@ -35700,7 +35705,7 @@
3570035705
]
3570135706
}
3570235707
},
35703-
"toshiba": {
35708+
"kioxia": {
3570435709
"TC58DVM92A1FT00": {
3570535710
"id": [
3570635711
"9876A5C00680",
@@ -46873,7 +46878,7 @@
4687346878
]
4687446879
}
4687546880
},
46876-
"sandisk": {
46881+
"westerndigital": {
4687746882
"SDTNFBH-1024": {
4687846883
"id": [
4687946884
"9879A5C08680",

FlashDetector/src/iTXTech/FlashDetector/Property/Classification.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ public function setRnb(int $rnb) : Classification{
6161
return $this;
6262
}
6363

64-
/**
65-
* @return int
66-
*/
6764
public function getCe() : int{
6865
return $this->ce;
6966
}

0 commit comments

Comments
 (0)