mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
improve E004 card generation and placeholder pcbid (#748)
## Link to GitHub Issue or related Pull Request, if one exists #73 ## Description of change Generated cards now start with E0040100 to fully match real cards. The placeholder example `E004010000000000` is replaced with `E0040100FFFFFFFF`. The invalid placeholder/fallback PCBID `04040000000000000000` is replaced with `01201000000000010101`, which contains a valid header/checksum, making it closer resemble a real PCBID while still clearly being an example.
This commit is contained in:
@@ -114,7 +114,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.name = "p",
|
||||
.desc = "Sets a custom PCBID override.",
|
||||
.type = OptionType::Text,
|
||||
.setting_name = "04040000000000000000",
|
||||
.setting_name = "01201000000000010101",
|
||||
.category = "Network",
|
||||
.sensitive = true,
|
||||
},
|
||||
@@ -123,7 +123,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.name = "card0",
|
||||
.desc = "Set a card number for reader 1. Overrides the selected card file.",
|
||||
.type = OptionType::Text,
|
||||
.setting_name = "E004010000000000",
|
||||
.setting_name = "E0040100FFFFFFFF",
|
||||
.category = "Network",
|
||||
.sensitive = true,
|
||||
.picker = OptionPickerType::EACard,
|
||||
@@ -133,7 +133,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
|
||||
.name = "card1",
|
||||
.desc = "Set a card number for reader 2. Overrides the selected card file.",
|
||||
.type = OptionType::Text,
|
||||
.setting_name = "E004010000000000",
|
||||
.setting_name = "E0040100FFFFFFFF",
|
||||
.category = "Network",
|
||||
.sensitive = true,
|
||||
.picker = OptionPickerType::EACard,
|
||||
|
||||
Reference in New Issue
Block a user