Skip to content

Commit

Permalink
pad 0 if sub_version is < 10 (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
freasy authored Feb 2, 2024
1 parent 0ac984d commit 300e58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sources/AM32/index.js
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ class AM32Source extends GithubSource {
const settings = flash.settings;
let revision = 'Unsupported/Unrecognized';
if(settings.MAIN_REVISION !== undefined && settings.SUB_REVISION !== undefined) {
revision = `${settings.MAIN_REVISION}.${settings.SUB_REVISION}`;
revision = `${settings.MAIN_REVISION}.${settings.SUB_REVISION > 9 ? '' : '0'}${settings.SUB_REVISION}`;
}

if(make === 'NOT READY') {

0 comments on commit 300e58e

Please sign in to comment.