UDP_broadcast

convert owner_name_*_pos to uint32
This commit is contained in:
2023-12-04 11:10:26 +01:00
parent 25c8f5b750
commit e1832cf54e
2 changed files with 4 additions and 4 deletions

View File

@@ -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()

View File

@@ -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){