Skip to content

Commit

Permalink
tweaks to debug remove firmware (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocrippa authored Mar 12, 2024
1 parent 934299e commit a1b8e93
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
file_path="platformio.ini"

# Replace -build_type = debug with build_type = release
sed 's/build_type = debug/build_type = release/' $file_path > tmpfile && mv tmpfile $file_path
#sed 's/build_type = debug/build_type = release/' $file_path > tmpfile && mv tmpfile $file_path

# Replace -DLOG_LEVEL=3 with -DLOG_LEVEL=0
sed 's/-DLOG_LEVEL=3/-DLOG_LEVEL=0/' $file_path > tmpfile && mv tmpfile $file_path
#sed 's/-DLOG_LEVEL=3/-DLOG_LEVEL=0/' $file_path > tmpfile && mv tmpfile $file_path
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v0.0.10
# v0.0.11

- Improved network handling

12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ _Legend_

| Board | Link |
| :------------------------------------------------------- | :----------------------------------------------------------- |
| [ESP8266](https://s.click.aliexpress.com/e/_EuwffHJ) | [0.0.10](https://github.com/matteocrippa/leafminer/releases) |
| [GeekMagic SmartTV]() | [0.0.10](https://github.com/matteocrippa/leafminer/releases) |
| [ESP32](https://s.click.aliexpress.com/e/_Ey6AJnT) | [0.0.10](https://github.com/matteocrippa/leafminer/releases) |
| [ESP32-S2](https://s.click.aliexpress.com/e/_EGJcibR) | [0.0.10](https://github.com/matteocrippa/leafminer/releases) |
| [ESP32-S3](https://s.click.aliexpress.com/e/_EJbAXyl) | [0.0.10](https://github.com/matteocrippa/leafminer/releases) |
| [LILYGO-T-S3](https://s.click.aliexpress.com/e/_ExRWk6H) | [0.0.10](https://github.com/matteocrippa/leafminer/releases) |
| [ESP8266](https://s.click.aliexpress.com/e/_EuwffHJ) | [0.0.11](https://github.com/matteocrippa/leafminer/releases) |
| [GeekMagic SmartTV]() | [0.0.11](https://github.com/matteocrippa/leafminer/releases) |
| [ESP32](https://s.click.aliexpress.com/e/_Ey6AJnT) | [0.0.11](https://github.com/matteocrippa/leafminer/releases) |
| [ESP32-S2](https://s.click.aliexpress.com/e/_EGJcibR) | [0.0.11](https://github.com/matteocrippa/leafminer/releases) |
| [ESP32-S3](https://s.click.aliexpress.com/e/_EJbAXyl) | [0.0.11](https://github.com/matteocrippa/leafminer/releases) |
| [LILYGO-T-S3](https://s.click.aliexpress.com/e/_ExRWk6H) | [0.0.11](https://github.com/matteocrippa/leafminer/releases) |

- Browse to [ESPWebtool](https://esp.huhn.me/) using a Chrome based browser and follow the instructions.

Expand Down
1 change: 0 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ build_flags =
-DBOARD_HAS_PSRAM
-DCONFIG_SPIRAM_CACHE_WORKAROUND
-DCORE_DEBUG_LEVEL=0
-mfix-esp32-psram-cache-issue
-fexceptions

[env:esp32-s2]
Expand Down
2 changes: 1 addition & 1 deletion src/leafminer.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef LEAFMINER_H
#define LEAFMINER_H

#define _VERSION "0.0.10"
#define _VERSION "0.0.11"
#define DIFFICULTY 1e-4

// Mining
Expand Down
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ bool force_ap = false;
void setup()
{
Serial.begin(115200);
delay(1000);
l_info(TAG_MAIN, "LeafMiner - v.%s", _VERSION);
delay(1500);
l_info(TAG_MAIN, "LeafMiner - v.%s - (C: %d)", _VERSION, CORE);

#if defined(ESP8266)
l_info(TAG_MAIN, "ESP8266 - Disable WDT");
Expand Down
4 changes: 2 additions & 2 deletions src/miner/nerdSHA256plus.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

struct nerdSHA256_context
{
MEM_ALIGN_4 uint8_t buffer[NERD_SHA256_BLOCK_SIZE];
MEM_ALIGN_32 uint32_t digest[8];
uint8_t buffer[NERD_SHA256_BLOCK_SIZE];
uint32_t digest[8];
};

/* Calculate midstate */
Expand Down
1 change: 0 additions & 1 deletion src/screen/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ void screen_loop()
{
if (!screen_enabled)
{
l_info(TAG_SCREEN, "Screen disabled");
return;
}

Expand Down
4 changes: 0 additions & 4 deletions src/utils/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@
#if defined(ESP32)
#define MEM_ATTR DRAM_ATTR
#define RAM_ATTR IRAM_ATTR
#define MEM_ALIGN_32 alignas(32)
#define MEM_ALIGN_4 alignas(4)
#else
#define MEM_ATTR
#define RAM_ATTR
#define MEM_ALIGN_32
#define MEM_ALIGN_4
#endif

// Core auto configuration
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"current": "0.0.10",
"current": "0.0.11",
"link": "https://github.com/matteocrippa/leafminer/releases/download/v{{version}}/firmware_{{device}}.bin",
"devices": [
"esp8266",
Expand Down

2 comments on commit a1b8e93

@gungriffonbr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matteocrippa
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we an option, feel free to open an issue, we will keep track of the platforms the community is interested in. So far I don't have that device, it got lost in a shipping for Aliexpress. I hope to receive that soon.

Please sign in to comment.