Skip to content
Snippets Groups Projects
Commit 1e88e806 authored by Moritz Warning's avatar Moritz Warning
Browse files

make vendormodels varaible configurable

parent be9504b9
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,8 @@ var firmwarewizard = function() { ...@@ -62,8 +62,8 @@ var firmwarewizard = function() {
var vendormodels_reverse = {} var vendormodels_reverse = {}
// create a map of {match : [{vendor, model, default-revision}, ... ], ...} // create a map of {match : [{vendor, model, default-revision}, ... ], ...}
for (var vendor in vendormodels) { for (var vendor in config.vendormodels) {
var models = vendormodels[vendor]; var models = config.vendormodels[vendor];
for (var model in models) { for (var model in models) {
var match = models[model]; var match = models[model];
if (typeof match == 'string') { if (typeof match == 'string') {
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
*/ */
var config = { var config = {
// see devices.js for different vendor model maps
vendormodels: vendormodels,
// relative image paths and branch // relative image paths and branch
directories: { directories: {
// some demo sources // some demo sources
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment