Skip to content

Commit

Permalink
Address compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
masonticehurst committed Feb 9, 2024
1 parent 05cc704 commit ba220a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions eRINA_STM32F7/src/rina/debug.adb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
with Bitmapped_Drawing;
with STM32.Board;
with GUI;

package body Debug is

Expand Down
1 change: 0 additions & 1 deletion eRINA_STM32F7/src/rina/debug.ads
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
with HAL.Bitmap;
with BMP_Fonts;
with GUI;

package Debug is
type Debug is (Error, Warning, Info);
Expand Down
7 changes: 3 additions & 4 deletions eRINA_STM32F7/src/rina/gui.adb
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
with Bitmapped_Drawing;
with HAL.Bitmap;
with STM32.Board;
with STM32.RNG.Interrupts;

package body GUI is

function Scale (Point : in HAL.Bitmap.Point) return HAL.Bitmap.Point is
begin
if STM32.Board.LCD_Natural_Width > 480 then
return (Point.X * 800 / 480, Point.Y * 480 / 272);
if STM32.Board.LCD_Natural_Width > Board_Resolution.Width then
return (Point.X * 800 / Board_Resolution.Width, Point.Y * Board_Resolution.Width / Board_Resolution.Height);
else
return Point;
end if;
Expand All @@ -28,7 +27,7 @@ package body GUI is
end Print;

procedure Initialize (Title : in String) is
Title_Location : HAL.Bitmap.Point := (80, 10);
Title_Location : constant HAL.Bitmap.Point := (80, 10);
begin
STM32.RNG.Interrupts.Initialize_RNG;
STM32.Board.Display.Initialize;
Expand Down

0 comments on commit ba220a2

Please sign in to comment.