@@ -39,13 +39,13 @@ class NetworkInitTask : modm::rtos::Thread
39
39
{
40
40
public:
41
41
NetworkInitTask ()
42
- : Thread(5 , 2048 , " network_init" )
42
+ : Thread(configMAX_PRIORITIES - 1 , 2048 , " network_init" )
43
43
{}
44
44
45
45
void
46
46
run ()
47
47
{
48
- uint8_t ipAddress[4 ] { 192 , 168 , 1 , 1 };
48
+ uint8_t ipAddress[4 ] { 192 , 168 , 178 , 42 };
49
49
uint8_t netmask[4 ] { 255 , 255 , 255 , 0 };
50
50
uint8_t gatewayAddress[4 ] { 0 , 0 , 0 , 0 };
51
51
uint8_t dnsAddress[4 ] { 0 , 0 , 0 , 0 };
@@ -174,7 +174,7 @@ class HttpServerListener
174
174
char buffer[16 ];
175
175
FreeRTOS_inet_ntoa (clientAddress.sin_addr , buffer);
176
176
xTaskCreate (HttpConnection::run, HttpConnection::name, configMINIMAL_STACK_SIZE * 5 ,
177
- reinterpret_cast <void *>(connectedSocket), configMAX_PRIORITIES, 0 );
177
+ reinterpret_cast <void *>(connectedSocket), configMAX_PRIORITIES - 3 , 0 );
178
178
}
179
179
}
180
180
};
@@ -212,7 +212,7 @@ void vApplicationIPNetworkEventHook(eIPCallbackEvent_t eNetworkEvent)
212
212
return ;
213
213
214
214
if (not taskCreated) {
215
- xTaskCreate (HttpServerListener::run, HttpServerListener::name, configMINIMAL_STACK_SIZE * 2 , 0 , configMAX_PRIORITIES + 1 , 0 );
215
+ xTaskCreate (HttpServerListener::run, HttpServerListener::name, configMINIMAL_STACK_SIZE * 2 , 0 , configMAX_PRIORITIES - 2 , 0 );
216
216
taskCreated = true ;
217
217
}
218
218
0 commit comments