|  | @@ -319,10 +319,14 @@ void mbed_error_hook(const mbed_error_ctx * error_context)
 | 
											
												
													
														|  |  // This function is called for every log message.
 |  |  // This function is called for every log message.
 | 
											
												
													
														|  |  void platform_log(const char *s)
 |  |  void platform_log(const char *s)
 | 
											
												
													
														|  |  {
 |  |  {
 | 
											
												
													
														|  | 
 |  | +    #ifdef IS_STANDALONE_2040
 | 
											
												
													
														|  |      if (g_uart_initialized)
 |  |      if (g_uart_initialized)
 | 
											
												
													
														|  |      {
 |  |      {
 | 
											
												
													
														|  |          uart_puts(uart0, s);
 |  |          uart_puts(uart0, s);
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | 
 |  | +    #else
 | 
											
												
													
														|  | 
 |  | +    Serial.print(s);
 | 
											
												
													
														|  | 
 |  | +    #endif
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  static int g_watchdog_timeout;
 |  |  static int g_watchdog_timeout;
 |