Skip to content

Commit 4b68e61

Browse files
committed
Visibly warn of the dangers of using this API.
1 parent de9f930 commit 4b68e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PF1550.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class PF1550
6767
Sw1CurrentLimit const sw1_current_limit,
6868
bool const enable,
6969
bool const enable_in_standby,
70-
bool const enable_in_sleep);
70+
bool const enable_in_sleep) __attribute__ ((error("Erroneus usage of this API can cause board damage.")));
7171

7272
void configSw2(Sw2Voltage const sw2_volt,
7373
Sw2Voltage const sw2_volt_standby,

0 commit comments

Comments
 (0)