Skip to content

Instantly share code, notes, and snippets.

@electricimp
Created January 23, 2015 10:50
Show Gist options
  • Save electricimp/6f69130bd9a8c6ed0524 to your computer and use it in GitHub Desktop.
Save electricimp/6f69130bd9a8c6ed0524 to your computer and use it in GitHub Desktop.
Factory firmware stub
const FACTORY_IMP_MAC = "0c2a690130b5"
if (imp.getmacaddress() == FACTORY_IMP_MAC)
{
// Factory firmware running on factory imp,
// so run BlinkUp code
}
else
{
// Factory firmware runnong on target device.
// so run blessing code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment