From 1ccafc9d5de3a8d894dd3a3e8c6e6f1549966a72 Mon Sep 17 00:00:00 2001 From: Sergey Date: Mon, 5 Oct 2020 13:36:04 +0300 Subject: [PATCH] Fix warning Fix firmware upload --- Marlin/src/HAL/STM32F1/eeprom_spi_w25q.cpp | 6 +----- buildroot/share/PlatformIO/scripts/mks_robin_nano35.py | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Marlin/src/HAL/STM32F1/eeprom_spi_w25q.cpp b/Marlin/src/HAL/STM32F1/eeprom_spi_w25q.cpp index 6e9bf622ca..164a2d7ddf 100644 --- a/Marlin/src/HAL/STM32F1/eeprom_spi_w25q.cpp +++ b/Marlin/src/HAL/STM32F1/eeprom_spi_w25q.cpp @@ -59,11 +59,7 @@ void eeprom_update_block(const void *__src, void *__dst, size_t __n){ }; void eeprom_test(void){ - uint16_t chip_id=0; - - chip_id=W25QXX.W25QXX_ReadID(); - DEBUG("SPI Flash ID %0X",chip_id); - + DEBUG("SPI Flash ID %0X",W25QXX.W25QXX_ReadID()); DEBUG("Read FLASH:"); for(uint32_t i=0; i < 50 ; ){ memset(spi_eeprom,0,10); diff --git a/buildroot/share/PlatformIO/scripts/mks_robin_nano35.py b/buildroot/share/PlatformIO/scripts/mks_robin_nano35.py index 0047289adf..ae7a566c04 100644 --- a/buildroot/share/PlatformIO/scripts/mks_robin_nano35.py +++ b/buildroot/share/PlatformIO/scripts/mks_robin_nano35.py @@ -38,3 +38,8 @@ def encrypt(source, target, env): firmware.close() robin.close() env.AddPostAction("$BUILD_DIR/${PROGNAME}.bin", encrypt); + +env.Replace( + UPLOADER="curl", + UPLOADCMD="$UPLOADER -v -H 'Content-Type:application/octet-stream' http://$UPLOADERFLAGS/upload?X-Filename=Robin_Nano35.bin --data-binary @$BUILD_DIR/Robin_nano35.bin" +)