Skip to content

Commit cbc5ee3

Browse files
keith-packardfabiobaltieri
authored andcommitted
samples/boards/google_twinkie_v2_pda: fix main return
switch to int Signed-off-by: Keith Packard <[email protected]>
1 parent 8f55774 commit cbc5ee3

File tree

1 file changed

+2
-2
lines changed
  • samples/boards/google_twinkie_v2_pda/src

1 file changed

+2
-2
lines changed

samples/boards/google_twinkie_v2_pda/src/view.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static void set_led(const struct device *const led, enum led_color_t led_color)
3333
#define CHARGING_VOLTAGE 5000
3434
#define CHARGING_CURRENT 1000
3535

36-
void main(void)
36+
int main(void)
3737
{
3838
meas_init();
3939

@@ -42,7 +42,7 @@ void main(void)
4242
int32_t vbus_c = 0;
4343

4444
if (!device_is_ready(led)) {
45-
return;
45+
return 0;
4646
}
4747

4848
while (1) {

0 commit comments

Comments
 (0)