Skip to content

Commit

Permalink
net: fastboot: Fix build when FASTBOOT_FLASH is disabled
Browse files Browse the repository at this point in the history
When building without FASTBOOT_FLASH we don't include the intermediate
update callback to keep the client alive, so ensure we don't try setting
it here.

Signed-off-by: Alex Kiernan <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
  • Loading branch information
akiernan authored and jhershbe committed Jul 2, 2018
1 parent d1b226b commit 6dc73df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/fastboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ void fastboot_start_server(void)

fastboot_our_port = WELL_KNOWN_PORT;

#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
fastboot_set_progress_callback(fastboot_timed_send_info);
#endif
net_set_udp_handler(fastboot_handler);

/* zero out server ether in case the server ip has changed */
Expand Down

0 comments on commit 6dc73df

Please sign in to comment.