Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(cli): change secTac for flash
Browse files Browse the repository at this point in the history
... and find Azure firmware
  • Loading branch information
coderbyheart committed Apr 22, 2021
1 parent 6cda8b6 commit b8b5736
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/commands/flash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { v4 } from 'uuid'
import { progress, success } from '../logging'

const defaultPort = '/dev/ttyACM0'
const defaultSecTag = 42
const defaultSecTag = 11

const getLatestFirmware = async ({
nbiot,
Expand Down Expand Up @@ -54,6 +54,7 @@ const getLatestFirmware = async ({
const hexfile = assets.find(
({ name }) =>
name.includes('.hex') &&
name.includes('azure') &&
name.includes(dk ? 'nRF9160DK' : 'Thingy91') &&
name.includes(nbiot ? 'nbiot' : 'ltem') &&
(nodebug ? name.includes('nodebug') : !name.includes('nodebug')),
Expand Down

0 comments on commit b8b5736

Please sign in to comment.