ERIS CORE

◆ update()

void AppReprogram::update ( )
inlinevirtual

update loop

Reimplemented from AppBaseClass.

Definition at line 29 of file appReprogram.h.

29  {
30  update_priority = 3500;
31  //Enter program mode if both TAP_INPUT and SW_D
32  //switches are pressed at the same time.
33  if (digitalRead(TAP_INPUT) == LOW && digitalRead(SW_D) == LOW){
34  sci->println(F("M AppReprogram:update Entering Programming Mode"));
35  delay(100);
36  __asm__ volatile ("bkpt #251"); //enter the bootloader
37  while(1);//wait for reset
38  }
39  }
SvcSerialCommandInterface * sci
Definition: AppBaseClass.h:39
uint16_t update_priority
Definition: AppBaseClass.h:52

References AppBaseClass::sci, and AppBaseClass::update_priority.