Permalink
Browse files

Remove PRESENCE command

The device ID command can be used to check for device presence.
  • Loading branch information...
blastur committed Mar 1, 2011
1 parent 58968c7 commit df3abb52b990c5a9e3295876eab9580748471c75
Showing with 0 additions and 16 deletions.
  1. +0 −10 magboot.c
  2. +0 −6 magboot.py
View
@@ -112,11 +112,6 @@ static bool cmd_device_id(void)
return fail;
}
-static bool cmd_precense()
-{
- return false;
-}
-
static bool cmd_jump(uint16_t addr)
{
jump_t func;
@@ -160,11 +155,6 @@ int main(void) {
while(1) {
switch (uart_getc()) {
- /* Presence */
- case 'P':
- fail = cmd_precense();
- break;
-
/* Device ID */
case 'I':
fail = cmd_device_id();
View
@@ -11,7 +11,6 @@
-w <file> Write contents of <file> to loaded address (use - for stdin)
-i Verify device signature
-j Jump to loaded address
--p Check device presence
-r Reset device
supported devices:
@@ -75,10 +74,6 @@ def do_cmd(str, expect_reply = True):
reply = ser.read()
sys.exit(1)
-def cmd_presence():
- print "PRESENCE"
- do_cmd('P')
-
def cmd_device_id():
print "ID"
do_cmd('I' + dev['signature'])
@@ -148,7 +143,6 @@ def cmd_jump():
if o == '-w': cmd_write_file(a)
if o == '-i': cmd_device_id()
if o == '-j': cmd_jump()
- if o == '-p': cmd_presence()
if o == '-r': cmd_reset()
ser.close()

0 comments on commit df3abb5

Please sign in to comment.