Explorar o código

[finsh] fixed finsh issue.

weety %!s(int64=11) %!d(string=hai) anos
pai
achega
12136cfeb1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      components/finsh/shell.c

+ 1 - 1
components/finsh/shell.c

@@ -118,7 +118,7 @@ void finsh_set_device(const char* device_name)
         {
             /* close old finsh device */
             rt_device_close(shell->device);
-            rt_device_set_rx_indicate(dev, RT_NULL);
+            rt_device_set_rx_indicate(shell->device, RT_NULL);
         }
 
         shell->device = dev;