Skip to content

Commit

Permalink
FDB: version 41 (see fdfdb commits)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Nov 6, 2019
1 parent 0cba1ee commit da32a06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions FDBGen/src/iTXTech/FlashDetector/FDBGen/MicronDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ class MicronDatabase{
private $file;
private $data;

public function __construct(string $file){
public function __construct(string $file, int $option = JSON_PRETTY_PRINT){
$this->file = new Config($file, Config::JSON, [
"micron" => [],
"spectek" => []
]);
$this->data = $this->file->getAll();
$this->file->save(0);
$this->file->save($option);
}

public function save(int $option = 0){
public function save(int $option = JSON_PRETTY_PRINT){
$this->file->setAll($this->data);
$this->file->save($option);
}

public function update(int $option = 0){
public function update(int $option = JSON_PRETTY_PRINT){
foreach(self::MICRON_HEADER as $h){
for($i = self::START_FROM[$h]; $i < 1000; $i++){
if(!isset($this->data["micron"][$code = self::getCode($h, $i)])){
Expand Down
13 changes: 9 additions & 4 deletions FlashDetector/resources/fdb.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"info": {
"name": "iTXTech FlashDetector Flash Database",
"version": "40",
"version": "41",
"website": "https:\/\/github.com\/iTXTech\/FlashDetector",
"time": "Fri, 01 Nov 2019 17:21:29 +0800",
"time": "Wed, 06 Nov 2019 15:16:56 +0800",
"controllers": [
"SM321AC",
"SM321BB",
Expand Down Expand Up @@ -9691,6 +9691,11 @@
"EC3AD5F3A8C6"
],
"l": "16nm"
},
"K9QFGY8S7M": {
"id": [
"ECA7A06A68C4"
]
}
},
"skhynix": {
Expand Down Expand Up @@ -35700,7 +35705,7 @@
]
}
},
"toshiba": {
"kioxia": {
"TC58DVM92A1FT00": {
"id": [
"9876A5C00680",
Expand Down Expand Up @@ -46873,7 +46878,7 @@
]
}
},
"sandisk": {
"westerndigital": {
"SDTNFBH-1024": {
"id": [
"9879A5C08680",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ public function setRnb(int $rnb) : Classification{
return $this;
}

/**
* @return int
*/
public function getCe() : int{
return $this->ce;
}
Expand Down

0 comments on commit da32a06

Please sign in to comment.