Skip to content

Commit

Permalink
Fixed Settings Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pkElectronics committed Apr 4, 2017
1 parent 1e649ba commit 78fec63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion arduino/OctoRemoteV1/OctoRemoteV1.ino
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ char ackPending = false;
long lastSendTime = 0;
char lastSendKey = 0;
char lastSendCMD = 0;
uint8_t retryCounter = 0;
void setup(){
Serial.begin(115200);
customKeypad.addEventListener(keypadEvent);
Expand Down Expand Up @@ -140,7 +141,7 @@ unsigned char payload[256];
unsigned char payloadIndex = 0;
unsigned char parsingState = 0;
uint32_t telegramCRC = 0;
uint8_t retryCounter = 0;


void loop(){
char key = customKeypad.getKey();
Expand Down
2 changes: 1 addition & 1 deletion extras/OctoRemote.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: Control your 3D-Printer with an Arduino and a Keypad or a custom re
author: Pascal Krumme
license: AGPLv3

date: 2017-03-29
date: 2017-03-01

homepage: https://github.com/pkElectronics/OctoPrint-Octoremote
source: https://github.com/pkElectronics/OctoPrint-Octoremote
Expand Down
3 changes: 2 additions & 1 deletion octoprint_OctoRemote/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ def get_template_configs(self):
]

def on_settings_save(self,data):
octoprint.plugin.SettingsPlugin.on_settings_save(self,data)
self.stop_com_thread()
self.start_com_thread()
#restart the thread
##~~ AssetPlugin mixin
octoprint.plugin.SettingsPlugin.on_settings_save(data)


def get_assets(self):
# Define your plugin's asset files to automatically include in the
Expand Down

0 comments on commit 78fec63

Please sign in to comment.