Skip to content

Commit

Permalink
🚸 Show 256K / 512K note for STM32 envs
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 25, 2022
1 parent 72d9474 commit d045e50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion abm/js/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var ABM = (function(){
let $erows = $env_table_copy.find('tr').addClass(`env-${v.name}`);

// Set the env name in the new button row
$erows.find('.env-name').text(v.name);
$erows.find('.env-name').text(v.name + (v.note ? ` ${v.note}` : ''));

// Set env row classes and env caption
let caption = '';
Expand Down
5 changes: 4 additions & 1 deletion abm/marlin.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,10 @@ function extractBoardInfo(mb) {
|| (r[1] == 'lin' && !is_lin)
|| (r[1] == 'uni' && !is_uni && !is_lin) ) continue;
let debugenv = r[2].match(/^.+_debug$/i);
out.envs.push({ name: r[2], debug: debugenv, native: r[1] != 'env' });
let note = '';
if (r[2].match(/STM32F....E/)) note = '(512K)';
else if (r[2].match(/STM32F....C/)) note = '(256K)';
out.envs.push({ name: r[2], note: note, debug: debugenv, native: r[1] != 'env' });
if (debugenv) out.has_debug = true;
}
}
Expand Down

0 comments on commit d045e50

Please sign in to comment.