Skip to content

Commit

Permalink
Merge pull request #659 from Paciente8159/fix-rp2040-wifi-and-telnet
Browse files Browse the repository at this point in the history
fixed RP2040 wifi and telnet connection
  • Loading branch information
Paciente8159 committed Mar 5, 2024
2 parents 8da7d78 + df75a98 commit 2f2187f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions uCNC/src/hal/mcus/rp2040/mcu_rp2040.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ void mcu_init(void)
#ifdef IC74HC595_CUSTOM_SHIFT_IO
ic74hc595_pio_init();
#endif
#ifndef RAM_ONLY_SETTINGS
rp2040_eeprom_init(NVM_STORAGE_SIZE); // 2K Emulated EEPROM
#endif

mcu_usart_init();

pinMode(LED_BUILTIN, OUTPUT);
Expand All @@ -320,9 +324,6 @@ void mcu_init(void)
servo_alarm.alarm_cb = &mcu_clear_servos;
#endif

#ifndef RAM_ONLY_SETTINGS
rp2040_eeprom_init(NVM_STORAGE_SIZE); // 2K Emulated EEPROM
#endif
#ifdef MCU_HAS_SPI
mcu_spi_config(SPI_FREQ, SPI_MODE);
#endif
Expand Down
2 changes: 0 additions & 2 deletions uCNC/src/hal/mcus/rp2040/rp2040_arduino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,8 +845,6 @@ uint8_t rp2040_wifi_bt_read(void)
void rp2040_wifi_bt_process(void)
{
#ifdef MCU_HAS_WIFI
DECL_BUFFER(uint8_t, wifi_rx, RX_BUFFER_SIZE);

if (rp2040_wifi_clientok())
{
while (server_client.available() > 0)
Expand Down

0 comments on commit 2f2187f

Please sign in to comment.