Show
Ignore:
Timestamp:
08/28/08 22:21:45 (5 years ago)
Author:
telle
Message:

some bugfixes in property assignment

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/telle/RWTHMindstormsNXT/@NXTmotor/set.m

    r218 r243  
    5757            case 'Port' 
    5858                if isscalar(val) && isnumeric(val) && val >= 0 && val <= 2 
    59                     obj.port = val; 
     59                    obj.data('port', val); 
    6060                elseif ischar(val) 
    6161                    val = lower(val); 
     
    6666                            obj.data('port', 1); 
    6767                        case 'c' 
    68                             obj.closure('port', 2); 
     68                            obj.data('port', 2); 
    6969                        otherwise 
    7070                            error('MotorSettingError:InvalidPort',...