Skip to content
  • Daan Vreeken's avatar
    Fix error reporting when an incorrect argument is passed to a new block. · 062fc0fe
    Daan Vreeken authored
    The incorrect error was line 3 of the following example:
    
     ERROR: Too many arguments supplied! This function doesn't accept arguments.
     ERROR: Invalid arguments trying to create block 'heater3'
     ERROR: Could not find create function or struct for block bridge_pwm
     ERROR: pand.ctrl:36: Error creating block
    
    Both the create function and the create struct were found, but the block
    wasn't created because the arguments didn't match. This version reports:
     ..
     ERROR: Could not load or create block 'bridge_pwm'
    
    	modified:   controller/controller/controller_load.c
    062fc0fe