writing to lcd api
added writing the owner's name on the LCD, fixing some bugs
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include "llfs.h"
|
||||
#include "lcd_api.h"
|
||||
#include "UDP_broadcast.h"
|
||||
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
@@ -128,13 +127,13 @@ int main(void)
|
||||
llfs_init();
|
||||
|
||||
// Initialize the UDP broadcast service
|
||||
if (udp_broadcast_init() != ERR_OK && udp_broadcast_connection_init() != ERR_OK){
|
||||
if (udp_broadcast_init(270,255) != ERR_OK && udp_broadcast_connection_init() != ERR_OK){
|
||||
LOG_WARN(TAG,"error initializing udp connection");
|
||||
}
|
||||
if (!udp_broadcast_set_owner_details("Joran", "Van Nieuwenhoven")){
|
||||
if (!udp_broadcast_set_owner_details("0123456879012345678", "default")){
|
||||
LOG_WARN(TAG,"error setting owner's details");
|
||||
}
|
||||
LOG_DEBUG(TAG,"%s",udp_broadcast_get_owner_details_reply());
|
||||
|
||||
/* USER CODE END 2 */
|
||||
|
||||
/* Infinite loop */
|
||||
|
||||
Reference in New Issue
Block a user