<commit_before>package bluetooth

import (
	"fmt"
	"os/exec"
	"strings"
	"time"

	"github.com/pkg/errors"
	"golang.org/x/net/context"

	log "github.com/Sirupsen/logrus"
	"github.com/currantlabs/ble"
	"github.com/currantlabs/ble/linux"
	"github.com/currantlabs/ble/linux/hci"
	"github.com/currantlabs/ble/linux/hci/cmd"
	"github.com/resin-io/edge-node-manager/config"
)

var (
	initialised  bool
	doneChannel  chan struct{}
	name         *ble.Characteristic
	shortTimeout time.Duration
	longTimeout  time.Duration
)

func Initialise() error {
	if !initialised {
		log.Info("Initialising bluetooth")
<commit_msg>Only perform extra bluetooth initialisation if the device type is raspberrypi<commit_after>package bluetooth

import (
	"fmt"
	"os"
	"os/exec"
	"strings"
	"time"

	"github.com/pkg/errors"
	"golang.org/x/net/context"

	log "github.com/Sirupsen/logrus"
	"github.com/currantlabs/ble"
	"github.com/currantlabs/ble/linux"
	"github.com/currantlabs/ble/linux/hci"
	"github.com/currantlabs/ble/linux/hci/cmd"
	"github.com/resin-io/edge-node-manager/config"
)

var (
	initialised  bool
	doneChannel  chan struct{}
	name         *ble.Characteristic
	shortTimeout time.Duration
	longTimeout  time.Duration
)

func Initialise() error {
	if !initialised && os.Getenv("RESIN_DEVICE_TYPE") == "raspberrypi3" {
		log.Info("Initialising bluetooth")

{'fraction_non_alphanumeric': 0.13338301043219075, 'fraction_numerical': 0.0007451564828614009, 'mean_word_length': 4.329365079365079, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7561440', 'n_tokens_mistral': 528, 'n_tokens_neox': 517, 'n_words': 83}