-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dc bias points bug #277
Dc bias points bug #277
Conversation
@@ -46,12 +46,16 @@ mySpinBox::mySpinBox(int Min, int Max, int Step, double *Val, QWidget *Parent) | |||
using namespace std; | |||
QString mySpinBox::textFromValue(int Val) const | |||
{ | |||
if (Values == NULL) return ""; | |||
|
|||
cout<<"Values + Val"<<*(Values+Val)<<endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better use qDebug() << "message";
, so we can silence this on the released code.
Your patch seems to fix the crash. Please squash to a single commit. |
For some reason, with your example, the spinbox does not update the |
...the values do not change because the sweep parameter R4 is not used... |
@in3otd I agree, realized that later. @guitorri You know now. Current squash: 51ab6de |
@nvdl, no need to upload the edited example, just a comment when you spotted the unused sweep parameter would have been enough. I see that 51ab6de contains the squashed commits but your branch |
5b11c71
to
67a8fbc
Compare
D.C bias points calculation bug fix; cleanup. Removed commented out test code.
@in3otd I lost previous commits this way. The others need to be "squahed" or "fixed" in. Or possibly I did not follow you. Nevertheless, I started from scratch and squashed commits. |
sorry @nvdl my understanding was that 51ab6de was already the result of the squashed commits. In any case your old commits should not have been completely lost, they are just not "linked" to the other commits anymore, Using |
@in3otd I did git reflog and squashed the commits again. Nothing lost on my side. Now, there is only one commit in the PR. Git is amazing once one figures out where the accelerator and brake is. |
100% agree, the problem is when one mistakenly swaps the two; it happens, sometimes 😁 |
Two things.
The crash is still happening when dereferencing the double pointers: Need to sleep now... |
OK. I will have a look later. |
yeah, I was also taking a look at this yesterday evening, then almost fell asleep on the keyboard. My impression was that the problem might be in I agree for the commit formatting, it was quite difficult to understand where the functional modifications and the "cosmetic" ones were. My suggestion is to avoid altogether to change the code formatting around: as guitorri said, we will (hopefully soon) have an automatic code formatting, as we know that the current style is not consistent. |
guitorri: yes, i've run into the dc_bias code when experimenting with the data backend... i do not understand either the dc bias code nor the proposed PR -- now waiting for the cleaned up commit that in3otd is pointing to (i wouldn't mind to do the rebase to the current master). |
I will close this. Let us go back to the issue #272. |
Sure, looks like it needs a deeper dive. |
#272