Skip to content

Commit

Permalink
fix: correct priority
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben committed Jun 21, 2024
1 parent 054bfac commit 4e35306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/arduino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class Arduino extends Blockly.Generator {
const includes = Object.values(this.includes_),
definitions: string[] = Object.values(this.definitions_),
declarations = Object.values(this.declarations_)
.sort((a, b) => a.priority - b.priority)
.sort((a, b) => b.priority - a.priority)
.map(({ code }) => code);

if (includes.length) includes.push("\n");
Expand Down

0 comments on commit 4e35306

Please sign in to comment.