add production flash option with serial disabled
Some checks failed
xiao_pet_tracker / semantic-pull-request (push) Failing after 0s
xiao_pet_tracker / build (push) Failing after 0s
xiao_pet_tracker / spell-check (push) Failing after 0s

This commit is contained in:
baldeau 2024-11-13 22:04:42 +01:00
parent 1d74c70549
commit 3775d3b9ac
2 changed files with 3 additions and 3 deletions

View File

@ -5,3 +5,6 @@ prepare:
flash:
tinygo flash -target=xiao-ble
production:
tinygo flash -target=xiao-ble -serial=none

View File

@ -2,7 +2,6 @@ package main
import (
"encoding/binary"
"fmt"
"machine"
"time"
@ -138,8 +137,6 @@ func main() {
senseCharacteristic.Write(arrTime)
}
fmt.Println("TIME: ", unixTimeStamp)
time.Sleep(sleepDuration)
if isCapturing {
unixTimeStamp = unixTimeStamp.Add(sleepDuration)