imamnurby commited on
Commit
33b9322
·
1 Parent(s): e6071d9

Update static/frontend.js

Browse files
Files changed (1) hide show
  1. static/frontend.js +4 -4
static/frontend.js CHANGED
@@ -184,13 +184,13 @@
184
  // html += 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.'
185
 
186
  // interface configuration begin
187
- html += '<h6>Protocol: '+ response[i]["hw_config"]["protocol"]+ '</h6>';
188
  html += '<table class="table table-hover"><thead><tr><th>Arduino Type</th><th>I/O hardware --> Arduino</th></tr></thead><tbody>'
189
  //loop through hardware config
190
  for (const property in response[i]["hw_config"]["pin_connection_from_hw_to_arduino"]){
191
- let firstLetter = property.charAt(0).toUpperCase();
192
- let remLetter = property.substring(1).split("_");
193
- html += '<tr><td>' + firstLetter + remLetter[0] + '_' + remLetter[1].charAt(0).toUpperCase() + remLetter[1].substring(1) + '</td><td>';
194
  //loop through the arduino type
195
  for (let y=0; y < response[i]["hw_config"]["pin_connection_from_hw_to_arduino"][property].length; y++){
196
  // html += '(' + (response[i]["hw_config"]["pin_connection_from_hw_to_arduino"][property][y][0] + ',' + response[i]["hw_config"]["pin_connection_from_hw_to_arduino"][property][y][1]) + ') ';
 
184
  // html += 'Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven\'t heard of them accusamus labore sustainable VHS.'
185
 
186
  // interface configuration begin
187
+ html += '<h6>Library Configuration: '+ response[i]["hw_config"]["protocol"]+ '</h6>';
188
  html += '<table class="table table-hover"><thead><tr><th>Arduino Type</th><th>I/O hardware --> Arduino</th></tr></thead><tbody>'
189
  //loop through hardware config
190
  for (const property in response[i]["hw_config"]["pin_connection_from_hw_to_arduino"]){
191
+ // let firstLetter = property.charAt(0).toUpperCase();
192
+ // let remLetter = property.substring(1).split("_");
193
+ html += '<tr><td>' + property +'</td><td>';
194
  //loop through the arduino type
195
  for (let y=0; y < response[i]["hw_config"]["pin_connection_from_hw_to_arduino"][property].length; y++){
196
  // html += '(' + (response[i]["hw_config"]["pin_connection_from_hw_to_arduino"][property][y][0] + ',' + response[i]["hw_config"]["pin_connection_from_hw_to_arduino"][property][y][1]) + ') ';