UDP_broadcast
convert owner_name_*_pos to uint32
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user