Skip to content

Commit

Permalink
Bumped firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
siliconwitch committed Nov 5, 2024
1 parent 2a1bd43 commit 3e1225b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Binary file not shown.
23 changes: 13 additions & 10 deletions lib/models/app_logic_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'package:shared_preferences/shared_preferences.dart';
final _log = Logger("App logic");

// NOTE Update these when changing firmware or scripts
const _firmwareVersion = "v24.282.1117";
const _firmwareVersion = "v24.310.0800";
const _scriptVersion = "v1.0.0";

enum State {
Expand Down Expand Up @@ -132,27 +132,31 @@ class AppLogicModel extends ChangeNotifier {
.then((sp) => sp.setBool("customServer", value));
notifyListeners();
}

String _apiEndpoint = "";
String get apiEndpoint => _apiEndpoint;
set apiEndpoint(String value) {
_apiEndpoint = value;
SharedPreferences.getInstance().then((sp) => sp.setString("apiEndpoint", value));
SharedPreferences.getInstance()
.then((sp) => sp.setString("apiEndpoint", value));
notifyListeners();
}

String _apiToken = "";
String get apiToken => _apiToken;
set apiToken(String value) {
_apiToken = value;
SharedPreferences.getInstance().then((sp) => sp.setString("apiToken", value));
SharedPreferences.getInstance()
.then((sp) => sp.setString("apiToken", value));
notifyListeners();
}

String _apiHeader = "";
String get apiHeader => _apiHeader;
set apiHeader(String value) {
_apiHeader = value;
SharedPreferences.getInstance().then((sp) => sp.setString("apiHeader", value));
SharedPreferences.getInstance()
.then((sp) => sp.setString("apiHeader", value));
notifyListeners();
}

Expand Down Expand Up @@ -248,7 +252,7 @@ class AppLogicModel extends ChangeNotifier {
.buffer
.asUint8List(),
exclude: true));

noaMessages.add(NoaMessage(
message: "...and then a third time to finish",
from: NoaRole.noa,
Expand Down Expand Up @@ -578,7 +582,6 @@ class AppLogicModel extends ChangeNotifier {
getTunePrompt(),
_tuneTemperature / 50,
textToSpeech,

);
noaUser =
await NoaApi.getUser((await _getUserAuthToken())!);
Expand Down Expand Up @@ -607,9 +610,9 @@ class AppLogicModel extends ChangeNotifier {
apiHeader,
apiToken,
customServer,
promptless
);
final topicChanged = newMessages.where((msg) => msg.topicChanged).isNotEmpty;
promptless);
final topicChanged =
newMessages.where((msg) => msg.topicChanged).isNotEmpty;
if (topicChanged) {
for (var msg in noaMessages) {
msg.exclude = true;
Expand Down Expand Up @@ -776,4 +779,4 @@ class AppLogicModel extends ChangeNotifier {

final model = ChangeNotifierProvider<AppLogicModel>((ref) {
return AppLogicModel();
});
});
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: noa
description: "A new Flutter project."
publish_to: 'none'
version: 1.5.0
version: 1.5.1

environment:
sdk: '>=3.3.1 <4.0.0'
Expand Down

0 comments on commit 3e1225b

Please sign in to comment.