Skip to content

Commit 2cad923

Browse files
committed
MCUboot library: use bool flags instead of int
1 parent 0b42286 commit 2cad923

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

libraries/MCUboot/src/MCUboot.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ void MCUboot::confirmSketch()
88
boot_set_confirmed();
99
}
1010

11-
void MCUboot::applyUpdate(int permanent)
11+
void MCUboot::applyUpdate(bool permanent)
1212
{
13-
boot_set_pending(permanent);
13+
boot_set_pending(permanent == true ? 1 : 0);
1414
}
1515

16-
void MCUboot::bootDebug(int enable)
16+
void MCUboot::bootDebug(bool enable)
1717
{
1818
unsigned int rtc_reg = STM32H747::readBackupRegister(RTCBackup::DR7);
1919

libraries/MCUboot/src/MCUboot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class MCUboot
66

77
public:
88
static void confirmSketch(void);
9-
static void applyUpdate(int permanent);
10-
static void bootDebug(int enable);
9+
static void applyUpdate(bool permanent);
10+
static void bootDebug(bool enable);
1111

1212
};
1313

0 commit comments

Comments
 (0)