diff --git a/project/Core/Inc/UDP_broadcast.h b/project/Core/Inc/UDP_broadcast.h index ff26d10..6adfdf1 100644 --- a/project/Core/Inc/UDP_broadcast.h +++ b/project/Core/Inc/UDP_broadcast.h @@ -108,7 +108,7 @@ char* udp_broadcast_get_owner_details_reply(void); * - ERR_ARG. one or both arguments of udp_broadcast_set_owner_details() are NULL pointers */ -err_t udp_broadcast_init(uint16_t x_pos, uint16_t y_pos); +err_t udp_broadcast_init(uint32_t x_pos, uint32_t y_pos); /** * @fn err_t udp_broadcast_connection_init() diff --git a/project/Core/Src/UDP_broadcast.c b/project/Core/Src/UDP_broadcast.c index d7261be..8ca1ed9 100644 --- a/project/Core/Src/UDP_broadcast.c +++ b/project/Core/Src/UDP_broadcast.c @@ -15,8 +15,8 @@ static const char* TAG = "UDP_broadcast"; // Tag used in logs static owner_details_t udp_owner; -static uint16_t owner_name_x_pos; -static uint16_t owner_name_y_pos; +static uint32_t owner_name_x_pos; +static uint32_t owner_name_y_pos; // Functions static void udp_broadcast_set_owner_details_mac(void); @@ -388,7 +388,7 @@ err_t udp_broadcast_connection_init(void) { * * - ERR_ARG. one or both arguments of udp_broadcast_set_owner_details() are NULL pointers */ -err_t udp_broadcast_init(uint16_t x_pos, uint16_t y_pos) { +err_t udp_broadcast_init(uint32_t x_pos, uint32_t y_pos) { owner_name_x_pos = x_pos; owner_name_y_pos = y_pos; if(udp_broadcast_set_owner_details("name", "default") != ERR_OK){