Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Romkabouter committed Dec 1, 2019
1 parent 85553bf commit b495e00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions PlatformIO/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ else
echo ""
cp .pio/build/esp32dev/firmware.bin .
cp .pio/build/esp32dev/partitions.bin .
cp ../OTABuilder/build/bootloader/bootloader.bin .
echo "Loading firmware: $FIRMWARE"
echo ""
tar cf - *.bin | ssh pi@$1 'tar xf - -C /tmp;sudo voice_esp32_reset;voice_esptool --chip esp32 --port /dev/ttyS0 --baud 1500000 --before default_reset --after hard_reset write_flash -u --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /tmp/bootloader.bin 0x10000 /tmp/firmware.bin 0x8000 /tmp/partitions.bin'
Expand Down
9 changes: 4 additions & 5 deletions PlatformIO/src/MatrixVoiceAudioServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ extern "C" {
#include "speex_resampler.h"
}

// User configuration in platformio.ini

/* ************************************************************************* *
DEFINES AND GLOBALS
* ************************************************************************ */
Expand Down Expand Up @@ -591,7 +589,7 @@ void Audiostream(void *p) {
uint8_t voicemapped[CHUNK * WIDTH];
uint8_t payload[sizeof(header) + (CHUNK * WIDTH)];

// Message count is the Mattix NumberOfSamples divided by the
// Message count is the Matrix NumberOfSamples divided by the
// framerate of Snips. This defaults to 512 / 256 = 2. If you
// lower the framerate, the AudioServer has to send more
// wavefile because the NumOfSamples is a fixed number
Expand Down Expand Up @@ -918,6 +916,9 @@ void AudioPlayTask(void *p) {
SETUP
* ************************************************************************ */
void setup() {
Serial.begin(115200);
Serial.println("Booting");

// Implementation of Semaphore, otherwise the ESP will crash due to read of
// the mics
if (wbSemaphore == NULL) // Not yet been created?
Expand Down Expand Up @@ -986,8 +987,6 @@ void setup() {
xTaskCreatePinnedToCore(everloopTask, "everloopTask", 4096, NULL, 5, &everloopTaskHandle, 1);
xEventGroupSetBits(everloopGroup, EVERLOOP);

Serial.begin(115200);
Serial.println("Booting");
WiFi.mode(WIFI_STA);
WiFi.begin(WIFI_SSID, WIFI_PASS);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Expand Down

0 comments on commit b495e00

Please sign in to comment.