Commits

Anonymous committed 5d2478a Draft

small fix native call should embed two underscore and not three

  • Participants
  • Parent commits 27a4349

Comments (0)

Files changed (1)

File src/platform/stm32f4/gpio.py

 LOW = False
     
 def enable_port(port):
-    """___NATIVE__
+    """__NATIVE__
 
     return change_port_state(ENABLE);
     """
     pass
     
 def disable_port(port):
-    """___NATIVE__
+    """__NATIVE__
     return change_port_state(DISABLE);
     """
     pass
     port->OSPEEDR &= ~(GPIO_OSPEEDER_OSPEEDR0 << (pin_num * 2));
     port->OSPEEDR |= ((uint32_t)(GPIO_Speed_100MHz) << (pin_num * 2));
     
-    return retval;	
-	"""
+    return retval;
+    """
     pass
 
 def pin_mode(pin, direction):