|
@@ -331,10 +331,15 @@ static void send_server(void) {
|
|
|
*/
|
|
|
static void server(in_addr_t ip, u16_t hport, u16_t cport) {
|
|
|
char msg[32];
|
|
|
+
|
|
|
+ xSemaphoreTake(displayer.mutex, portMAX_DELAY);
|
|
|
+
|
|
|
sprintf(msg, "%s:%hu", inet_ntoa(ip), hport);
|
|
|
if (displayer.owned) GDS_TextPos(display, GDS_FONT_DEFAULT, GDS_TEXT_CENTERED, GDS_TEXT_CLEAR | GDS_TEXT_UPDATE, msg);
|
|
|
SETD_width = displayer.width;
|
|
|
- displayer.dirty = true;
|
|
|
+
|
|
|
+ xSemaphoreGive(displayer.mutex);
|
|
|
+
|
|
|
if (notify_chain) (*notify_chain)(ip, hport, cport);
|
|
|
}
|
|
|
|