~cdwilson/python-msp430-tools/fix-bug-936695

« back to all changes in this revision

Viewing changes to msp430/target.py

  • Committer: Chris Liechti
  • Date: 2012-02-20 02:04:29 UTC
  • Revision ID: cliechti@gmx.net-20120220020429-ff3d8zxsinhvg7dj
Tags: python-msp430-tools-0.6
fix --info-erase

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
        except KeyError:
66
66
            return DEVICEIDS[device_id, None]
67
67
    except KeyError:
68
 
        if device_id[0] == '0x1f': return F1x
69
 
        if device_id[0] == '0x2f': return F2x
70
 
        if device_id[0] == '0x4f': return F4x
 
68
        if device_id >> 8 == 0x1f: return F1x
 
69
        if device_id >> 8 == 0x2f: return F2x
 
70
        if device_id >> 8 == 0x4f: return F4x
71
71
        raise KeyError('device type not known %04x/%04x' % (device_id, bsl_version))
72
72
 
73
73